16#ifndef __albaGeometryUtils_h
17#define __albaGeometryUtils_h
34 static double Dot(
double *point1,
double *point2);
35 static double Mag(
double *point1);
37 static float Norm2(
double *point1);
38 static double Norm(
double *point1);
40 static void Cross(
double *point1,
double *point2,
double* cross);
43 static bool Equal(
double *point1,
double *point2);
47 static void GetMidPoint(
double(&midPoint)[3],
double *point1,
double *point2);
53 static double GetAngle(
double* point1,
double* point2,
double* origin,
int plane =
XY);
54 static double GetAngle(
double point1[3],
double point2[3]);
57 static void RotatePoint(
double *point,
double *origin,
double angle,
int plane =
XY);
61 static bool GetLineLineIntersection(
double(&point)[3],
double *line1Point1,
double *line1Point2,
double *line2Point1,
double *line2Point2,
int plane =
XY);
63 static int IntersectLineLine(
double *l1p1,
double *l1p2,
double *l2p1,
double *l2p2,
double &perc);
66 static void GetParallelLine(
double(&point1)[3],
double(&point2)[3],
double *linePoint1,
double *linePoint2,
double distance,
int plane =
XY);
68 static bool FindPointOnLine(
double(&point)[3],
double *linePoint1,
double *linePoint2,
double distance,
int plane =
XY);
Class Name: albaGeometryUtils.
static bool FindPointOnLine(double(&point)[3], double *linePoint1, double *linePoint2, double distance, int plane=XY)
static bool GetLineLineIntersection(double(&point)[3], double *line1Point1, double *line1Point2, double *line2Point1, double *line2Point2, int plane=XY)
Lines.
static void Cross(double *point1, double *point2, double *cross)
static void GetParallelLine(double(&point1)[3], double(&point2)[3], double *linePoint1, double *linePoint2, double distance, int plane=XY)
static void RotatePoint(double *point, double *origin, double angle, int plane=XY)
static float Norm2(double *point1)
static void GetMidPoint(double(&midPoint)[3], double *point1, double *point2)
static double Mag(double *point1)
static bool Equal(double *point1, double *point2)
static double Dot(double *point1, double *point2)
static double GetAngle(double *point1, double *point2, double *origin, int plane=XY)
static int IntersectLineLine(double *l1p1, double *l1p2, double *l2p1, double *l2p2, double &perc)
static double DistancePointToLine(double *point, double *lineP1, double *lineP2, int plane=XY)
static double DistanceBetweenPoints(double *point1, double *point2)
static int PointUpDownLine(double *point, double *lp1, double *lp2, int plane=XY)
static double Norm(double *point1)
static double GetAngle(double point1[3], double point2[3])