Property | Type | Description | |
---|---|---|---|
Down | Vector2 | ||
GameWorldDown | Vector2 | ||
GameWorldUp | Vector2 | ||
Left | Vector2 | ||
Ones | Vector2 | ||
Right | Vector2 | ||
Up | Vector2 |
Method | Description | |
---|---|---|
ComponentwiseProduct ( Vector2 a, Vector2 b ) : Vector2 | ||
Polar ( double angle, Vector2 origin, bool degrees = true ) : Vector2 |
Return the unit vector pointing at the given angle relative to the positive x-axis, centered at the given origin.
|
|
Polar ( double angle, bool degrees = true ) : Vector2 |
Return the unit vector pointing at the given angle relative to the positive x-axis.
|
|
Rotate ( Vector2 vec, double angle, Vector2 origin, bool degrees = true, bool absoluteOrigin = true ) : Vector2 |
Rotate a vector by the given amount relative to the given point, and return the result.
|
|
Scale ( Vector2 vec, double amount, Vector2 origin, bool absoluteOrigin = true ) : Vector2 |
Scale a vector by the given amount relative to the given point, and return the result.
|
|
ToNormalized ( Vector2 vec ) : Vector2 |
Return the normalization of a given vector.
|
|
ToVec ( Point p ) : Vector2 | ||
ToVec ( System p ) : Vector2 |
public static ComponentwiseProduct ( Vector2 a, Vector2 b ) : Vector2 | ||
a | Vector2 | |
b | Vector2 | |
return | Vector2 |
public static Polar ( double angle, Vector2 origin, bool degrees = true ) : Vector2 | ||
angle | double | |
origin | Vector2 | |
degrees | bool | |
return | Vector2 |
public static Polar ( double angle, bool degrees = true ) : Vector2 | ||
angle | double | |
degrees | bool | |
return | Vector2 |
public static Rotate ( Vector2 vec, double angle, Vector2 origin, bool degrees = true, bool absoluteOrigin = true ) : Vector2 | ||
vec | Vector2 | |
angle | double | |
origin | Vector2 | |
degrees | bool | |
absoluteOrigin | bool | |
return | Vector2 |
public static Scale ( Vector2 vec, double amount, Vector2 origin, bool absoluteOrigin = true ) : Vector2 | ||
vec | Vector2 | |
amount | double | |
origin | Vector2 | |
absoluteOrigin | bool | |
return | Vector2 |
public static ToNormalized ( Vector2 vec ) : Vector2 | ||
vec | Vector2 | |
return | Vector2 |