ILine2d_DG Interface
- Init
- Init1
- GetOrigin
- SetOrigin
- GetDirection
- SetDirection
- DirectTowards
- GetPoint
- ReverseDirection
- GetDistance
- GetAngle
- GetPointLocation
- IsCollinear
- Copy
- Clone
ILine2d_DG represents a 2D line/ray/axis defined by its origin point and a direction
void Init(DG2D origin, DG2D direction)
void Init1(Point_DG end0, Point_DG end1)
Raises an exception if end0 and end1 coinside (are closer than gTol(=1e-10)
DG2D GetOrigin()
void SetOrigin(DG2D origin)
DG2D GetDirection()
void SetDirection(DG2D direction)
bool DirectTowards(DG2D target)
Returns false if target coinsides with the origin or this has invalid (zero length) direction
DG2D GetPoint(double u)
Parameter u is the distance from the origin
void ReverseDirection()
double GetDistance(DG2D point, out DG2D pointNearestOnThis, out double paramOnThis)
double GetAngle(ILine2d_DG line)
Returns angle between directions of the two lines
PointVs2dLineLocation_DG GetPointLocation(Point_DG point, double tolerance)
Identifies relative position of the point.
bool IsCollinear(ILine2d_DG line, double tolerance)
void Copy(ILine2d_DG ray)
ILine2d_DG Clone()
|