3 #ifndef __apps_on_maps__DoublePlaneMethods__
4 #define __apps_on_maps__DoublePlaneMethods__
8 #include "VectorMath.h"
9 #include "DoublePlane.h"
17 namespace DoublePlanes
19 bool IntersectsLineSegment(
const DoublePlane& plane,
const dv3& lineSegmentStart,
const dv3& lineSegmentEnd, dv3& out_intersectionPoint,
double& out_param);
22 enum LineSegmentClassification
24 LineSegmentClassification_PositiveSide,
25 LineSegmentClassification_NegativeSide,
26 LineSegmentClassification_Intersects_StartOnPositiveSide,
27 LineSegmentClassification_Intersects_StartOnNegativeSide
30 LineSegmentClassification ClassifyLineSegment(
const DoublePlane& plane,
const dv3& lineSegmentStart,
const dv3& lineSegmentEnd,
double& out_param);
33 DoublePlane BuildBestFitFromPoints(
const std::vector<dv3>& points);