@@ -30,9 +30,9 @@ namespace mrpt::math
3030 @{
3131 */
3232/* * Gets the intersection between two 3D segments. Possible outcomes:
33- * - Segments intersect: Return=true, obj.getType()=GEOMETRIC_TYPE_POINT
33+ * - Segments intersect: Return=true, obj.getType()=GeometricEntity::POINT
3434 * - Segments don't intersect & are parallel: Return=true,
35- *obj.getType()=GEOMETRIC_TYPE_SEGMENT , obj is the segment "in between" both
35+ *obj.getType()=GeometricEntity::SEGMENT , obj is the segment "in between" both
3636 *segments.
3737 * - Segments don't intersect & aren't parallel: Return=false.
3838 * \sa TObject3D
@@ -42,29 +42,29 @@ bool intersect(const TSegment3D& s1, const TSegment3D& s2, TObject3D& obj);
4242/* * Gets the intersection between a 3D segment and a plane. Possible outcomes:
4343 * - Don't intersect: Return=false
4444 * - s1 is within the plane: Return=true,
45- *obj.getType()=GEOMETRIC_TYPE_SEGMENT
45+ *obj.getType()=GeometricEntity::SEGMENT
4646 * - s1 intersects the plane at one point: Return=true,
47- *obj.getType()=GEOMETRIC_TYPE_POINT
47+ *obj.getType()=GeometricEntity::POINT
4848 * \sa TObject3D
4949 */
5050bool intersect (const TSegment3D& s1, const TPlane& p2, TObject3D& obj);
5151
5252/* * Gets the intersection between a 3D segment and a 3D line. Possible outcomes:
5353 * - They don't intersect : Return=false
5454 * - s1 lies within the line: Return=true,
55- *obj.getType()=GEOMETRIC_TYPE_SEGMENT
55+ *obj.getType()=GeometricEntity::SEGMENT
5656 * - s1 intersects the line at a point: Return=true,
57- *obj.getType()=GEOMETRIC_TYPE_POINT
57+ *obj.getType()=GeometricEntity::POINT
5858 * \sa TObject3D
5959 */
6060bool intersect (const TSegment3D& s1, const TLine3D& r2, TObject3D& obj);
6161
6262/* * Gets the intersection between a plane and a 3D segment. Possible outcomes:
6363 * - Don't intersect: Return=false
6464 * - s2 is within the plane: Return=true,
65- *obj.getType()=GEOMETRIC_TYPE_SEGMENT
65+ *obj.getType()=GeometricEntity::SEGMENT
6666 * - s2 intersects the plane at one point: Return=true,
67- *obj.getType()=GEOMETRIC_TYPE_POINT
67+ *obj.getType()=GeometricEntity::POINT
6868 * \sa TObject3D
6969 */
7070inline bool intersect (const TPlane& p1, const TSegment3D& s2, TObject3D& obj)
@@ -75,27 +75,27 @@ inline bool intersect(const TPlane& p1, const TSegment3D& s2, TObject3D& obj)
7575/* * Gets the intersection between two planes. Possible outcomes:
7676 * - Planes are parallel: Return=false
7777 * - Planes intersect into a line: Return=true,
78- *obj.getType()=GEOMETRIC_TYPE_LINE
78+ *obj.getType()=GeometricEntity::LINE
7979 * \sa TObject3D
8080 */
8181bool intersect (const TPlane& p1, const TPlane& p2, TObject3D& obj);
8282
8383/* * Gets the intersection between a plane and a 3D line. Possible outcomes:
8484 * - Line is parallel to plane but not within it: Return=false
8585 * - Line is contained in the plane: Return=true,
86- *obj.getType()=GEOMETRIC_TYPE_LINE
86+ *obj.getType()=GeometricEntity::LINE
8787 * - Line intersects the plane at one point: Return=true,
88- *obj.getType()=GEOMETRIC_TYPE_POINT
88+ *obj.getType()=GeometricEntity::POINT
8989 * \sa TObject3D
9090 */
9191bool intersect (const TPlane& p1, const TLine3D& p2, TObject3D& obj);
9292
9393/* * Gets the intersection between a 3D line and a 3D segment. Possible outcomes:
9494 * - They don't intersect : Return=false
9595 * - s2 lies within the line: Return=true,
96- *obj.getType()=GEOMETRIC_TYPE_SEGMENT
96+ *obj.getType()=GeometricEntity::SEGMENT
9797 * - s2 intersects the line at a point: Return=true,
98- *obj.getType()=GEOMETRIC_TYPE_POINT
98+ *obj.getType()=GeometricEntity::POINT
9999 * \sa TObject3D
100100 */
101101inline bool intersect (const TLine3D& r1, const TSegment3D& s2, TObject3D& obj)
@@ -106,9 +106,9 @@ inline bool intersect(const TLine3D& r1, const TSegment3D& s2, TObject3D& obj)
106106/* * Gets the intersection between a 3D line and a plane. Possible outcomes:
107107 * - Line is parallel to plane but not within it: Return=false
108108 * - Line is contained in the plane: Return=true,
109- *obj.getType()=GEOMETRIC_TYPE_LINE
109+ *obj.getType()=GeometricEntity::LINE
110110 * - Line intersects the plane at one point: Return=true,
111- *obj.getType()=GEOMETRIC_TYPE_POINT
111+ *obj.getType()=GeometricEntity::POINT
112112 * \sa TObject3D
113113 */
114114inline bool intersect (const TLine3D& r1, const TPlane& p2, TObject3D& obj)
@@ -120,9 +120,9 @@ inline bool intersect(const TLine3D& r1, const TPlane& p2, TObject3D& obj)
120120 * - Lines do not intersect: Return=false
121121 * - Lines are parallel and do not coincide: Return=false
122122 * - Lines coincide (are the same): Return=true,
123- *obj.getType()=GEOMETRIC_TYPE_LINE
123+ *obj.getType()=GeometricEntity::LINE
124124 * - Lines intesect in a point: Return=true,
125- *obj.getType()=GEOMETRIC_TYPE_POINT
125+ *obj.getType()=GeometricEntity::POINT
126126 * \sa TObject3D
127127 */
128128bool intersect (const TLine3D& r1, const TLine3D& r2, TObject3D& obj);
@@ -131,29 +131,29 @@ bool intersect(const TLine3D& r1, const TLine3D& r2, TObject3D& obj);
131131 * - Lines do not intersect: Return=false
132132 * - Lines are parallel and do not coincide: Return=false
133133 * - Lines coincide (are the same): Return=true,
134- *obj.getType()=GEOMETRIC_TYPE_LINE
134+ *obj.getType()=GeometricEntity::LINE
135135 * - Lines intesect in a point: Return=true,
136- *obj.getType()=GEOMETRIC_TYPE_POINT
136+ *obj.getType()=GeometricEntity::POINT
137137 * \sa TObject2D
138138 */
139139bool intersect (const TLine2D& r1, const TLine2D& r2, TObject2D& obj);
140140
141141/* * Gets the intersection between a 2D line and a 2D segment. Possible outcomes:
142142 * - They don't intersect: Return=false
143143 * - s2 lies within the line: Return=true,
144- *obj.getType()=GEOMETRIC_TYPE_SEGMENT
144+ *obj.getType()=GeometricEntity::SEGMENT
145145 * - Both intersects in one point: Return=true,
146- *obj.getType()=GEOMETRIC_TYPE_POINT
146+ *obj.getType()=GeometricEntity::POINT
147147 * \sa TObject2D
148148 */
149149bool intersect (const TLine2D& r1, const TSegment2D& s2, TObject2D& obj);
150150
151151/* * Gets the intersection between a 2D line and a 2D segment. Possible outcomes:
152152 * - They don't intersect: Return=false
153153 * - s1 lies within the line: Return=true,
154- *obj.getType()=GEOMETRIC_TYPE_SEGMENT
154+ *obj.getType()=GeometricEntity::SEGMENT
155155 * - Both intersects in one point: Return=true,
156- *obj.getType()=GEOMETRIC_TYPE_POINT
156+ *obj.getType()=GeometricEntity::POINT
157157 * \sa TObject2D
158158 */
159159inline bool intersect (const TSegment2D& s1, const TLine2D& r2, TObject2D& obj)
@@ -162,9 +162,9 @@ inline bool intersect(const TSegment2D& s1, const TLine2D& r2, TObject2D& obj)
162162}
163163
164164/* * Gets the intersection between two 2D segments. Possible outcomes:
165- * - Segments intersect: Return=true, obj.getType()=GEOMETRIC_TYPE_POINT
165+ * - Segments intersect: Return=true, obj.getType()=GeometricEntity::POINT
166166 * - Segments don't intersect & are parallel: Return=true,
167- *obj.getType()=GEOMETRIC_TYPE_SEGMENT , obj is the segment "in between" both
167+ *obj.getType()=GeometricEntity::SEGMENT , obj is the segment "in between" both
168168 *segments.
169169 * - Segments don't intersect & aren't parallel: Return=false.
170170 * \sa TObject2D
0 commit comments