Resonance Game
Team Walterio Fuchsbauer
 All Classes Namespaces Files Functions Variables Enumerations Properties
Resonance.Utility Class Reference

List of all members.

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.

Member Function Documentation

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.

Parameters:
vectorthe normalised vector
unitBasisthe "another" normalised vector
Returns:
Vector3 parallel component

Here is the caller graph for this function:

static Vector3 Resonance.Utility.parallelComponent ( Vector3  vector,
Vector3  anotherVector 
) [static]

Get component of normalised vector that is parallel to another vector.

Parameters:
vectorthe normalised vector
unitBasisthe "another" normalised vector
Returns:
Vector3 parallel component
static Vector3 Resonance.Utility.perpendicularComponent ( Vector3  vector,
Vector3  anotherVector 
) [static]

Get component of normalised vector that is perpendicular to another normalised vector.

Parameters:
vectorthe normalised vector
unitBasisthe "another" normalised vector
Returns:
Vector3 perpendicular component

Here is the call graph for this function:

static Vector3 Resonance.Utility.perpendicularComponent ( Vector3  vector,
Vector3  anotherVector 
) [static]

Get component of normalised vector that is perpendicular to another normalised vector.

Parameters:
vectorthe normalised vector
unitBasisthe "another" normalised vector
Returns:
Vector3 perpendicular component

Here is the call graph for this function:

static Vector3 Resonance.Utility.QuaternionToEuler ( Quaternion  quat) [static]

Converts a quaternion into Vector3 of Euler co-ordinates.

Parameters:
quatthe quaternion
Returns:
the euler co-ordinates as Vector3
static Vector3 Resonance.Utility.QuaternionToEuler ( Quaternion  quat) [static]

Converts a quaternion into Vector3 of Euler co-ordinates.

Parameters:
quatthe quaternion
Returns:
the euler co-ordinates as Vector3

Here is the caller graph for this function:

static Vector2 Resonance.Utility.rotateVector2 ( Vector2  vec,
float  theta 
) [static]

Rotate a Vector2 by the angle theta.

Returns:
The rotated Vector2

Here is the caller graph for this function:

static Vector2 Resonance.Utility.rotateVector2 ( Vector2  vec,
float  theta 
) [static]

Rotate a Vector2 by the angle theta.

Returns:
The rotated Vector2

The documentation for this class was generated from the following files: