27 #include "utility/geom/d1/Line2d.h" 28 #include "utility/geom/d2/Surface2d.h" 48 virtual GeomObj *getCopy(
void)
const;
49 inline void swap(
void);
54 inline GEOM_RT
a(
void)
const 58 inline GEOM_RT
b(
void)
const 62 inline GEOM_RT
c(
void)
const 64 virtual GEOM_FT
GetMax(
unsigned short int)
const 66 virtual GEOM_FT
GetMin(
unsigned short int)
const 68 inline bool isDegenerated(
void)
const 70 inline const Line2d &getBoundaryLine(
void)
const 73 virtual bool In(
const Pos2d &p,
const double &tol= 0.0)
const;
74 virtual bool In(
const Line2d &,
const double &tol= 0.0)
const;
75 virtual bool In(
const Ray2d &,
const double &tol= 0.0)
const;
76 virtual bool In(
const Segment2d &,
const double &tol= 0.0)
const;
77 virtual bool In(
const Polyline2d &,
const double &tol= 0.0)
const;
78 virtual bool In(
const Polygon2d &,
const double &tol= 0.0)
const;
80 bool Out(
const Pos2d &p,
const double &tol= 0.0)
const;
81 bool Out(
const Line2d &,
const double &tol= 0.0)
const;
82 bool Out(
const Ray2d &,
const double &tol= 0.0)
const;
83 bool Out(
const Segment2d &,
const double &tol= 0.0)
const;
85 bool Out(
const Polygon2d &,
const double &tol= 0.0)
const;
90 GEOM_FT retval= lim.
dist(p);
91 if(
In(p)) retval= -retval;
100 inline bool intersects(
const HalfPlane2d &r2)
const 102 inline bool intersects(
const Line2d &r)
const 104 bool intersects(
const Ray2d &sr)
const;
105 bool intersects(
const Segment2d &sg)
const;
114 inline virtual Pos2d getCenterOfMass(
void)
const 117 inline virtual GEOM_FT
Ix(
void)
const 120 inline virtual GEOM_FT
Iy(
void)
const 123 inline virtual GEOM_FT
Pxy(
void)
const 126 inline virtual GEOM_FT Iz(
void)
const 132 std::deque<Polyline2d>
clip(
const Polyline2d &,
const GEOM_FT &tol= 0.0)
const;
133 boost::python::list
clipPy(
const Polyline2d &,
const GEOM_FT &tol= 0.0)
const;
139 inline void Print(std::ostream &os)
const 144 {
return r.
Dist(p); }
146 {
return dist(p,r); }
148 {
return !(r1==r2); }
151 {
return sp1.intersects(sp2); }
153 {
return sp.intersects(r); }
155 {
return sp.intersects(sr); }
157 {
return sp.intersects(sg); }
159 {
return sp.intersects(r); }
161 {
return sp.intersects(sr); }
163 {
return sp.intersects(sg); }
bool intersects(const Line2d &r2) const
Return true if the line intersects the argument one.
Definition: Line2d.cc:456
virtual GEOM_FT Dist(const Pos2d &p) const
Return the distance from the point to the half-plane.
Definition: HalfPlane2d.h:95
virtual GEOM_FT dist(const Pos2d &p) const
Return the squared distance from the point to the line.
Definition: Line2d.cc:637
GEOM_FT DistSigno(const Pos2d &p) const
Return the signed distance from the point to the half-plane.
Definition: HalfPlane2d.h:88
virtual GEOM_FT GetMin(unsigned short int) const
Return the minimum value of the i-th coordinate.
Definition: HalfPlane2d.h:66
Posición en dos dimensiones.
Definition: Pos2d.h:41
virtual GEOM_FT Ix(void) const
Moment of inertia with respect to the center of mass en local axis.
Definition: HalfPlane2d.h:117
Ray2d clip(const Line2d &) const
Returns the part of the line that is inside the half-space.
Definition: HalfPlane2d.cc:259
Line in a two-dimensional space.
Definition: Line2d.h:61
bool isDegenerated(void) const
Return true if the line is degenerated.
Definition: Line2d.cc:614
virtual GEOM_FT getLength(void) const
Return the length of the object.
Definition: HalfPlane2d.h:112
Base class for two-dimensional transformations.
Definition: Trf2d.h:40
virtual bool operator==(const HalfPlane2d &) const
Comparison operator.
Definition: HalfPlane2d.cc:50
virtual GEOM_FT GetMax(unsigned short int) const
Return the maximum value of the i-th coordinate.
Definition: HalfPlane2d.h:64
boost::python::list clipPy(const Polyline2d &, const GEOM_FT &tol=0.0) const
Return the polyline chunks that result from clipping the given polyline with this half plane...
Definition: HalfPlane2d.cc:352
Group of 3D entities.
Definition: GeomGroup2d.h:35
GEOM_RT c(void) const
Returns the c parameter of the line equation in general form: a*x + b*y + c= 0.
Definition: Line2d.cc:260
Base class for surfaces in a two-dimensional space.
Definition: Surface2d.h:33
GEOM_RT a(void) const
Return the value of a that corresponds to the equation of the line: a*x + b*y + c= 0...
Definition: HalfPlane2d.h:54
virtual GEOM_FT Pxy(void) const
Product of inertia with respect to the center of mass.
Definition: HalfPlane2d.h:123
Polígono en dos dimensiones.
Definition: Polygon2d.h:38
Segment in a two-dimensional space.
Definition: Segment2d.h:38
GEOM_RT a(void) const
Returns the a parameter of the line equation in general form: a*x + b*y + c= 0.
Definition: Line2d.cc:250
bool Out(const Pos2d &p, const double &tol=0.0) const
Return true if the given point is inside the half-space.
Definition: HalfPlane2d.cc:174
GEOM_RT b(void) const
Return the value of b that corresponds to the equation of the line: a*x + b*y + c= 0...
Definition: HalfPlane2d.h:58
void Transform(const Trf2d &trf2d)
Aplica al objeto la transformación que se pasa como parámetro.
Definition: HalfPlane2d.cc:387
GEOM_RT b(void) const
Returns the b parameter of the line equation in general form: a*x + b*y + c= 0.
Definition: Line2d.cc:255
Half plane in a two-dimensional space.
Definition: HalfPlane2d.h:38
GEOM_RT c(void) const
Return the value of c that corresponds to the equation of the line: a*x + b*y + c= 0...
Definition: HalfPlane2d.h:62
Polyline in a two-dimensional space.
Definition: Polyline2d.h:41
virtual Pos2d getCenterOfMass(void) const
Return the center of mass of the line.
Definition: Line2d.cc:191
Clase base para las entidades geométricas.
Definition: GeomObj.h:40
virtual GEOM_FT Iy(void) const
Moment of inertia with respect to an axis parallel to the Y axis that passes through the center of ma...
Definition: HalfPlane2d.h:120
virtual bool In(const Pos2d &p, const double &tol=0.0) const
Return true if the given point is inside the half-space.
Definition: HalfPlane2d.cc:113
Ray in a two-dimensional space.
Definition: Ray2d.h:35