Big Tony
BigTony.Utility.Vector3 Class Reference

Public Member Functions

 Vector3 ()
 Creates an empty Vector3. More...
 
 Vector3 (float _x, float _y)
 Creates a Vector3 with an 'x' and 'y' values specified. More...
 
 Vector3 (float _x, float _y, float _z)
 Creates a Vector3 with an 'x', 'y', and 'z' values specified. More...
 

Static Public Member Functions

static Vector3 operator+ (Vector3 a, Vector3 b)
 Add two Vector3's together. More...
 
static Vector3 operator- (Vector3 a, Vector3 b)
 Subtract a Vector3 from another. More...
 
static Vector3 operator/ (Vector3 a, Vector3 b)
 Divide a Vector3 from another. Note, if B has any axis-values equal to 0, a DivideByZeroException will be thrown. More...
 
static Vector3 operator* (Vector3 a, Vector3 b)
 Multiply a Vector3 with another. More...
 
static Vector3 operator* (Vector3 a, float b)
 Multiply a Vector3 with a floating-point number. More...
 
static Vector3 operator/ (Vector3 a, float b)
 Divide a Vector3 by a floating-point number. Note, if B is equal to zero, a DivideByZeroException will be thrown. More...
 

Public Attributes

float x
 
float y
 
float z
 

Constructor & Destructor Documentation

◆ Vector3() [1/3]

BigTony.Utility.Vector3.Vector3 ( )
inline

Creates an empty Vector3.

◆ Vector3() [2/3]

BigTony.Utility.Vector3.Vector3 ( float  _x,
float  _y 
)
inline

Creates a Vector3 with an 'x' and 'y' values specified.

Parameters
_xThe floating-point position on the x-axis.
_yThe floating-point position on the y-axis.

◆ Vector3() [3/3]

BigTony.Utility.Vector3.Vector3 ( float  _x,
float  _y,
float  _z 
)
inline

Creates a Vector3 with an 'x', 'y', and 'z' values specified.

Parameters
_xThe floating-point position on the x-axis.
_yThe floating-point position on the y-axis.
_zThe floating-point position on the z-axis.

Member Function Documentation

◆ operator*() [1/2]

static Vector3 BigTony.Utility.Vector3.operator* ( Vector3  a,
float  b 
)
inlinestatic

Multiply a Vector3 with a floating-point number.

Parameters
aThe Vector to be Mutliplied.
bThe floating-point number multiplying the Vector.
Returns
The multiplied Vector.

◆ operator*() [2/2]

static Vector3 BigTony.Utility.Vector3.operator* ( Vector3  a,
Vector3  b 
)
inlinestatic

Multiply a Vector3 with another.

Parameters
aThe Vector to be Multiplied.
bThe Vector multiplying the other.
Returns
The multiplied Vector.

◆ operator+()

static Vector3 BigTony.Utility.Vector3.operator+ ( Vector3  a,
Vector3  b 
)
inlinestatic

Add two Vector3's together.

Parameters
aThe first Vector to add.
bThe second Vector to add.
Returns
The sum of the two Vectors.

◆ operator-()

static Vector3 BigTony.Utility.Vector3.operator- ( Vector3  a,
Vector3  b 
)
inlinestatic

Subtract a Vector3 from another.

Parameters
aThe original Vector.
bThe Vector that will be subtracted from the original Vector.
Returns
The difference between the two Vectors.

◆ operator/() [1/2]

static Vector3 BigTony.Utility.Vector3.operator/ ( Vector3  a,
float  b 
)
inlinestatic

Divide a Vector3 by a floating-point number. Note, if B is equal to zero, a DivideByZeroException will be thrown.

Parameters
aThe Vector in the numerator.
bThe floating-point number in the denomonator.
Returns
A divided Vector.

◆ operator/() [2/2]

static Vector3 BigTony.Utility.Vector3.operator/ ( Vector3  a,
Vector3  b 
)
inlinestatic

Divide a Vector3 from another. Note, if B has any axis-values equal to 0, a DivideByZeroException will be thrown.

Parameters
aThe Vector in the numberator place.
bThe Vector in the denomonator place.
Returns
The divided Vector.

Member Data Documentation

◆ x

float BigTony.Utility.Vector3.x

◆ y

float BigTony.Utility.Vector3.y

◆ z

float BigTony.Utility.Vector3.z