Skip to content
Snippets Groups Projects
Commit 7d8dc5be authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[GL] Use MathLib::Point3d as args for getOrient().

There is no requirement for the GeoLib::Point:
 - id is not used
 - name of the geo-object is not used.
parent 7c683db0
No related branches found
No related tags found
No related merge requests found
...@@ -44,9 +44,9 @@ double getOrientation2d(MathLib::Point3d const& a, ...@@ -44,9 +44,9 @@ double getOrientation2d(MathLib::Point3d const& a,
namespace GeoLib namespace GeoLib
{ {
Orientation getOrientation(GeoLib::Point const& p0, Orientation getOrientation(MathLib::Point3d const& p0,
GeoLib::Point const& p1, MathLib::Point3d const& p1,
GeoLib::Point const& p2) MathLib::Point3d const& p2)
{ {
double const orientation = ExactPredicates::getOrientation2d(p0, p1, p2); double const orientation = ExactPredicates::getOrientation2d(p0, p1, p2);
if (orientation > 0) if (orientation > 0)
......
...@@ -41,10 +41,9 @@ enum Orientation ...@@ -41,10 +41,9 @@ enum Orientation
* \returns CW (clockwise), CCW (counterclockwise) or COLLINEAR (points are on a * \returns CW (clockwise), CCW (counterclockwise) or COLLINEAR (points are on a
* line) * line)
*/ */
Orientation getOrientation(GeoLib::Point const& p0, Orientation getOrientation(MathLib::Point3d const& p0,
GeoLib::Point const& p1, MathLib::Point3d const& p1,
GeoLib::Point const& p2); MathLib::Point3d const& p2);
/** /**
* compute a supporting plane (represented by plane_normal and the value d) for the polygon * compute a supporting plane (represented by plane_normal and the value d) for the polygon
* Let \f$n\f$ be the plane normal and \f$d\f$ a parameter. Then for all points \f$p \in R^3\f$ of the plane * Let \f$n\f$ be the plane normal and \f$d\f$ a parameter. Then for all points \f$p \in R^3\f$ of the plane
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment