Struct Line2d
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
Constructors
Line2d(Vector2d, Vector2d)
Declaration
public Line2d(Vector2d origin, Vector2d direction)
Parameters
Line2d(ref Vector2d, ref Vector2d)
Declaration
public Line2d(ref Vector2d origin, ref Vector2d direction)
Parameters
Fields
Direction
Declaration
public Vector2d Direction
Field Value
Origin
Declaration
Field Value
Methods
DistanceSquared(Vector2d)
Declaration
public double DistanceSquared(Vector2d p)
Parameters
Returns
FromPoints(Vector2d, Vector2d)
Declaration
public static Line2d FromPoints(Vector2d p0, Vector2d p1)
Parameters
Returns
FromPoints(ref Vector2d, ref Vector2d)
Declaration
public static Line2d FromPoints(ref Vector2d p0, ref Vector2d p1)
Parameters
Returns
IntersectionPoint(ref Line2d, Double)
Calculate intersection point between this line and another one.
Returns Vector2d.MaxValue if lines are parallel.
Declaration
public Vector2d IntersectionPoint(ref Line2d other, double dotThresh = 1E-08)
Parameters
Returns
PointAt(Double)
Declaration
public Vector2d PointAt(double d)
Parameters
Type |
Name |
Description |
Double |
d |
|
Returns
Project(Vector2d)
Declaration
public double Project(Vector2d p)
Parameters
Returns
WhichSide(Vector2d, Double)
Returns:
+1, on right of line
-1, on left of line
0, on the line
Declaration
public int WhichSide(Vector2d test, double tol = 0)
Parameters
Returns
WhichSide(ref Vector2d, Double)
Declaration
public int WhichSide(ref Vector2d test, double tol = 0)
Parameters
Returns
Operators
Explicit(Line2d to Line2f)
Declaration
public static explicit operator Line2f(Line2d v)
Parameters
Type |
Name |
Description |
Line2d |
v |
|
Returns
Implicit(Line2f to Line2d)
Declaration
public static implicit operator Line2d(Line2f v)
Parameters
Type |
Name |
Description |
Line2f |
v |
|
Returns