![]() |
Resonance Game
Team Walterio Fuchsbauer
|
Static Public Member Functions | |
static Vector3 | parallelComponent (Vector3 vector, Vector3 anotherVector) |
Get component of normalised vector that is parallel to another vector. | |
static Vector3 | perpendicularComponent (Vector3 vector, Vector3 anotherVector) |
Get component of normalised vector that is perpendicular to another normalised vector. | |
static Vector3 | QuaternionToEuler (Quaternion quat) |
Converts a quaternion into Vector3 of Euler co-ordinates. | |
static Vector2 | rotateVector2 (Vector2 vec, float theta) |
Rotate a Vector2 by the angle theta. | |
static void | drawLine (SpriteBatch spriteBatch, Texture2D tex, Vector2 p1, Vector2 p2, Color c, int thickness) |
Draws a line between two points on a SpriteBatch, as it can be a bit awkward. | |
static void | drawBox (SpriteBatch spriteBatch, Texture2D tex, Vector2[] corners, Color c, int thickness) |
Draws a box on a SpriteBatch. | |
static Vector3 | parallelComponent (Vector3 vector, Vector3 anotherVector) |
Get component of normalised vector that is parallel to another vector. | |
static Vector3 | perpendicularComponent (Vector3 vector, Vector3 anotherVector) |
Get component of normalised vector that is perpendicular to another normalised vector. | |
static Vector3 | QuaternionToEuler (Quaternion quat) |
Converts a quaternion into Vector3 of Euler co-ordinates. | |
static Vector2 | rotateVector2 (Vector2 vec, float theta) |
Rotate a Vector2 by the angle theta. | |
static void | drawLine (SpriteBatch spriteBatch, Texture2D tex, Vector2 p1, Vector2 p2, Color c, int thickness) |
Draws a line between two points on a SpriteBatch, as it can be a bit awkward. | |
static void | drawBox (SpriteBatch spriteBatch, Texture2D tex, Vector2[] corners, Color c, int thickness) |
Draws a box on a SpriteBatch. |
static void Resonance.Utility.drawBox | ( | SpriteBatch | spriteBatch, |
Texture2D | tex, | ||
Vector2[] | corners, | ||
Color | c, | ||
int | thickness | ||
) | [static] |
Draws a box on a SpriteBatch.
static void Resonance.Utility.drawBox | ( | SpriteBatch | spriteBatch, |
Texture2D | tex, | ||
Vector2[] | corners, | ||
Color | c, | ||
int | thickness | ||
) | [static] |
Draws a box on a SpriteBatch.
static void Resonance.Utility.drawLine | ( | SpriteBatch | spriteBatch, |
Texture2D | tex, | ||
Vector2 | p1, | ||
Vector2 | p2, | ||
Color | c, | ||
int | thickness | ||
) | [static] |
Draws a line between two points on a SpriteBatch, as it can be a bit awkward.
static void Resonance.Utility.drawLine | ( | SpriteBatch | spriteBatch, |
Texture2D | tex, | ||
Vector2 | p1, | ||
Vector2 | p2, | ||
Color | c, | ||
int | thickness | ||
) | [static] |
Draws a line between two points on a SpriteBatch, as it can be a bit awkward.
static Vector3 Resonance.Utility.parallelComponent | ( | Vector3 | vector, |
Vector3 | anotherVector | ||
) | [static] |
Get component of normalised vector that is parallel to another vector.
vector | the normalised vector |
unitBasis | the "another" normalised vector |
static Vector3 Resonance.Utility.parallelComponent | ( | Vector3 | vector, |
Vector3 | anotherVector | ||
) | [static] |
Get component of normalised vector that is parallel to another vector.
vector | the normalised vector |
unitBasis | the "another" normalised vector |
static Vector3 Resonance.Utility.perpendicularComponent | ( | Vector3 | vector, |
Vector3 | anotherVector | ||
) | [static] |
Get component of normalised vector that is perpendicular to another normalised vector.
vector | the normalised vector |
unitBasis | the "another" normalised vector |
static Vector3 Resonance.Utility.perpendicularComponent | ( | Vector3 | vector, |
Vector3 | anotherVector | ||
) | [static] |
Get component of normalised vector that is perpendicular to another normalised vector.
vector | the normalised vector |
unitBasis | the "another" normalised vector |
static Vector3 Resonance.Utility.QuaternionToEuler | ( | Quaternion | quat | ) | [static] |
Converts a quaternion into Vector3 of Euler co-ordinates.
quat | the quaternion |
static Vector3 Resonance.Utility.QuaternionToEuler | ( | Quaternion | quat | ) | [static] |
Converts a quaternion into Vector3 of Euler co-ordinates.
quat | the quaternion |
static Vector2 Resonance.Utility.rotateVector2 | ( | Vector2 | vec, |
float | theta | ||
) | [static] |
Rotate a Vector2 by the angle theta.
static Vector2 Resonance.Utility.rotateVector2 | ( | Vector2 | vec, |
float | theta | ||
) | [static] |
Rotate a Vector2 by the angle theta.