Struct Segment2f
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
Constructors
Segment2f(Vector2f, Vector2f)
Declaration
public Segment2f(Vector2f p0, Vector2f p1)
Parameters
Segment2f(Vector2f, Vector2f, Single)
Declaration
public Segment2f(Vector2f center, Vector2f direction, float extent)
Parameters
Fields
Center
Declaration
Field Value
Direction
Declaration
public Vector2f Direction
Field Value
Extent
Declaration
Field Value
Properties
Length
Declaration
public float Length { get; }
Property Value
P0
Declaration
public Vector2f P0 { get; set; }
Property Value
P1
Declaration
public Vector2f P1 { get; set; }
Property Value
Methods
DistanceSquared(Vector2f)
Declaration
public float DistanceSquared(Vector2f p)
Parameters
Returns
FastDistanceSquared(ref Vector2f, ref Vector2f, ref Vector2f)
distance from pt to segment (a,b), with no square roots
Declaration
public static float FastDistanceSquared(ref Vector2f a, ref Vector2f b, ref Vector2f pt)
Parameters
Returns
NearestPoint(Vector2f)
Declaration
public Vector2f NearestPoint(Vector2f p)
Parameters
Returns
PointAt(Single)
Declaration
public Vector2f PointAt(float d)
Parameters
Type |
Name |
Description |
Single |
d |
|
Returns
PointBetween(Single)
Declaration
public Vector2f PointBetween(float t)
Parameters
Type |
Name |
Description |
Single |
t |
|
Returns
Project(Vector2f)
Declaration
public float Project(Vector2f p)
Parameters
Returns