Constructor Line
Line()
Constructor
Declaration
public Line()
Line(Vector2, Vector2)
Constructor from 2 points
Declaration
public Line(Vector2 a, Vector2 b)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | a | First point of the line |
Vector2 | b | Second point of the line |
Line(float, float, float, float)
Constructor with 4 coordinates
Declaration
public Line(float _x1, float _y1, float _x2, float _y2)
Parameters
Type | Name | Description |
---|---|---|
float | _x1 | X1 point |
float | _y1 | Y2 point |
float | _x2 | X2 point |
float | _y2 | Y2 point |