Corgi Engine  v9.0
MoreMountains.Tools.MMVector4Extensions Class Reference

Vector4 Extensions More...

Static Public Member Functions

static float SumComponents (this Vector4 vector)
 Returns the sum of all components of a vector4 More...
 
static Vector4 MMSetX (this Vector4 vector, float newValue)
 Sets the x value of a vector More...
 
static Vector4 MMSetY (this Vector4 vector, float newValue)
 Sets the y value of a vector More...
 
static Vector4 MMSetZ (this Vector4 vector, float newValue)
 Sets the z value of a vector More...
 
static Vector4 MMSetW (this Vector4 vector, float newValue)
 Sets the z value of a vector More...
 
static Vector4 MMInvert (this Vector4 newValue)
 Inverts a vector More...
 
static Vector4 MMProject (this Vector4 vector, Vector4 projectedVector)
 Projects a vector on another More...
 
static Vector4 MMReject (this Vector4 vector, Vector4 rejectedVector)
 Rejects a vector on another More...
 
static Vector4 MMRound (this Vector4 vector)
 Rounds all components of a vector More...
 

Detailed Description

Vector4 Extensions

Member Function Documentation

◆ MMInvert()

static Vector4 MoreMountains.Tools.MMVector4Extensions.MMInvert ( this Vector4  newValue)
static

Inverts a vector

Parameters
newValue
Returns

◆ MMProject()

static Vector4 MoreMountains.Tools.MMVector4Extensions.MMProject ( this Vector4  vector,
Vector4  projectedVector 
)
static

Projects a vector on another

Parameters
vector
projectedVector
Returns

◆ MMReject()

static Vector4 MoreMountains.Tools.MMVector4Extensions.MMReject ( this Vector4  vector,
Vector4  rejectedVector 
)
static

Rejects a vector on another

Parameters
vector
rejectedVector
Returns

◆ MMRound()

static Vector4 MoreMountains.Tools.MMVector4Extensions.MMRound ( this Vector4  vector)
static

Rounds all components of a vector

Parameters
vector
Returns

◆ MMSetW()

static Vector4 MoreMountains.Tools.MMVector4Extensions.MMSetW ( this Vector4  vector,
float  newValue 
)
static

Sets the z value of a vector

Parameters
vector
newValue
Returns

◆ MMSetX()

static Vector4 MoreMountains.Tools.MMVector4Extensions.MMSetX ( this Vector4  vector,
float  newValue 
)
static

Sets the x value of a vector

Parameters
vector
newValue
Returns

◆ MMSetY()

static Vector4 MoreMountains.Tools.MMVector4Extensions.MMSetY ( this Vector4  vector,
float  newValue 
)
static

Sets the y value of a vector

Parameters
vector
newValue
Returns

◆ MMSetZ()

static Vector4 MoreMountains.Tools.MMVector4Extensions.MMSetZ ( this Vector4  vector,
float  newValue 
)
static

Sets the z value of a vector

Parameters
vector
newValue
Returns

◆ SumComponents()

static float MoreMountains.Tools.MMVector4Extensions.SumComponents ( this Vector4  vector)
static

Returns the sum of all components of a vector4

Parameters
vector
Returns

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