CryEngine.Vector4

Inherits IEquatable< Vector4 >.

Public Member Functions

Vector4 (float xCoord, float yCoord, float zCoord, float wCoord)
override int GetHashCode ()
override bool Equals (object obj)
bool Equals (Vector4 other)
override string ToString ()
bool IsZero (float epsilon=0)
bool IsNearlyZero ()

Static Public Member Functions

static implicit operator Vec4 (Vector4 managedVector)
static implicit operator Vector4 (Vec4 nativeVector)
static implicit operator Vector4 (Vector3 vec3)
static operator Vector4 (Vector2 vector)
static Vector4 operator* (Vector4 v, float scale)
static Vector4 operator* (float scale, Vector4 v)
static Vector4 operator/ (Vector4 v, float scale)
static Vector4 operator+ (Vector4 left, Vector4 right)
static Vector4 operator- (Vector4 left, Vector4 right)
static bool operator== (Vector4 left, Vector4 right)
static bool operator!= (Vector4 left, Vector4 right)
static Vector4 Lerp (Vector4 p, Vector4 q, float t)
static Vector4 LerpUnclamped (Vector4 p, Vector4 q, float t)

Properties

float x [get, set]
float y [get, set]
float z [get, set]
float w [get, set]
float X [get, set]
float Y [get, set]
float Z [get, set]
float W [get, set]
float this[int index] [get, set]
Gets individual axes by index More...
Vector4 Normalized [get]

Constructor & Destructor Documentation

◆ Vector4()

CryEngine.Vector4.Vector4 ( float xCoord,
float yCoord,
float zCoord,
float wCoord
)
inline

Member Function Documentation

◆ Equals() [1/2]

override bool CryEngine.Vector4.Equals ( object obj)
inline

◆ Equals() [2/2]

bool CryEngine.Vector4.Equals ( Vector4 other)
inline

◆ GetHashCode()

override int CryEngine.Vector4.GetHashCode ( )
inline

◆ IsNearlyZero()

bool CryEngine.Vector4.IsNearlyZero ( )
inline

◆ IsZero()

bool CryEngine.Vector4.IsZero ( float epsilon = 0)
inline

◆ Lerp()

static Vector4 CryEngine.Vector4.Lerp ( Vector4 p,
Vector4 q,
float t
)
inline
static

◆ LerpUnclamped()

static Vector4 CryEngine.Vector4.LerpUnclamped ( Vector4 p,
Vector4 q,
float t
)
inline
static

◆ operator Vec4()

static implicit CryEngine.Vector4.operator Vec4 ( Vector4 managedVector)
inline
static

◆ operator Vector4() [1/3]

static implicit CryEngine.Vector4.operator Vector4 ( Vec4 nativeVector)
inline
static

◆ operator Vector4() [2/3]

static implicit CryEngine.Vector4.operator Vector4 ( Vector3 vec3)
inline
static

◆ operator Vector4() [3/3]

static CryEngine.Vector4.operator Vector4 ( Vector2 vector)
inline
explicit
static

◆ operator!=()

static bool CryEngine.Vector4.operator!= ( Vector4 left,
Vector4 right
)
inline
static

◆ operator*() [1/2]

static Vector4 CryEngine.Vector4.operator* ( Vector4 v,
float scale
)
inline
static

◆ operator*() [2/2]

static Vector4 CryEngine.Vector4.operator* ( float scale,
Vector4 v
)
inline
static

◆ operator+()

static Vector4 CryEngine.Vector4.operator+ ( Vector4 left,
Vector4 right
)
inline
static

◆ operator-()

static Vector4 CryEngine.Vector4.operator- ( Vector4 left,
Vector4 right
)
inline
static

◆ operator/()

static Vector4 CryEngine.Vector4.operator/ ( Vector4 v,
float scale
)
inline
static

◆ operator==()

static bool CryEngine.Vector4.operator== ( Vector4 left,
Vector4 right
)
inline
static

◆ ToString()

override string CryEngine.Vector4.ToString ( )
inline

Property Documentation

◆ Normalized

Vector4 CryEngine.Vector4.Normalized
get

◆ this[int index]

float CryEngine.Vector4.this[int index]
get
set

Gets individual axes by index

Parameters
indexIndex, 0 - 3 where 0 is X and 3 is W
Returns
The axis value

◆ w

float CryEngine.Vector4.w
get
set

◆ W

float CryEngine.Vector4.W
get
set

◆ x

float CryEngine.Vector4.x
get
set

◆ X

float CryEngine.Vector4.X
get
set

◆ y

float CryEngine.Vector4.y
get
set

◆ Y

float CryEngine.Vector4.Y
get
set

◆ z

float CryEngine.Vector4.z
get
set

◆ Z

float CryEngine.Vector4.Z
get
set