Class Line2D
Model to define a line in 2D.
Assembly: GGL.dll
Syntax
Properties
|
Edit this page
View Source
Coefficient
Declaration
public Vector2 Coefficient { get; }
Property Value
Type |
Description |
Vector2 |
Direction followed by the line.
|
|
Edit this page
View Source
Point
Declaration
public Vector2 Point { get; }
Property Value
Type |
Description |
Vector2 |
A point where the line goes through.
|
Methods
|
Edit this page
View Source
CreateFromCoefficient(Vector2, Vector2)
Create a 2D line from a point and a coefficient.
Declaration
public static Line2D CreateFromCoefficient(Vector2 point, Vector2 coef)
Parameters
Type |
Name |
Description |
Vector2 |
point |
Model to define a line in 2D. |
Vector2 |
coef |
Model to define a line in 2D. |
Returns
Type |
Description |
Line2D |
Model to define a line in 2D. |
|
Edit this page
View Source
CreateFromPoints(Vector2, Vector2)
Create a 2D line from 2 points.
Declaration
public static Line2D CreateFromPoints(Vector2 p1, Vector2 p2)
Parameters
Type |
Name |
Description |
Vector2 |
p1 |
Model to define a line in 2D. |
Vector2 |
p2 |
Model to define a line in 2D. |
Returns
Type |
Description |
Line2D |
Model to define a line in 2D. |