Class Vector2Extensions
Inheritance
Vector2Extensions
Assembly: GGL.dll
Syntax
public static class Vector2Extensions
Methods
|
Edit this page
View Source
ProjectToLine(Vector2, Line2D)
Project a vector to a line
Declaration
public static Vector2 ProjectToLine(this Vector2 vector, Line2D line)
Parameters
Type |
Name |
Description |
Vector2 |
vector |
|
Line2D |
line |
|
Returns
Type |
Description |
Vector2 |
Vector that is part of the line
|
|
Edit this page
View Source
Rotate(Vector2, float, RotationType)
Rotate a vector by an angle.
Declaration
public static Vector2 Rotate(this Vector2 vector, float angle, RotationType mode = RotationType.DEG)
Parameters
Returns