![]() |
Roboid Control for C#
|
A spherical vector.
Public Member Functions | |
Spherical () | |
Create a default vector with zero distance. | |
Spherical (float distance, Direction direction) | |
Create a spherical vector. | |
Vector3 | ToVector3 () |
Static Public Member Functions | |
static Spherical | Degrees (float distance, float horizontal, float vertical) |
Create spherical vector. All given angles are in degrees. | |
static Spherical | Radians (float distance, float horizontal, float vertical) |
static Spherical | FromVector3 (Vector3 v) |
static Spherical | operator+ (Spherical s1, Spherical s2) |
Public Attributes | |
float | distance |
The distance in meters. | |
Direction | direction |
The direction of the vector. | |
Static Public Attributes | |
static readonly Spherical | zero = new(0, Direction.forward) |
A spherical vector with zero degree angles and distance. | |
static readonly Spherical | forward = new(1, Direction.forward) |
A normalized forward-oriented vector. | |
LinearAlgebra.Spherical.Spherical | ( | float | distance, |
Direction | direction | ||
) |
Create a spherical vector.
distance | The distance in meters |
direction | The direction of the vector |
|
static |
Create spherical vector. All given angles are in degrees.
distance | The distance in meters |
horizontal | The horizontal angle in degrees |
vertical | The vertical angle in degrees |
float LinearAlgebra.Spherical.distance |
The distance in meters.