![]() |
Falco Engine 3.9.0.1 (beta)
|
Public Member Functions | |
Vector4 (float x, float y, float z, float w) | |
Vector4 (float x, float y, float z) | |
Vector4 (float x, float y) | |
void | Set (float newX, float newY, float newZ, float newW) |
void | Scale (Vector4 scale) |
override int | GetHashCode () |
override bool | Equals (object other) |
bool | Equals (Vector4 other) |
void | Normalize () |
override string | ToString () |
string | ToString (string format) |
float | SqrMagnitude () |
Public Attributes | |
float | x |
float | y |
float | z |
float | w |
Properties | |
float | this[int index] [getset] |
Vector4 | normalized [get] |
float | magnitude [get] |
float | sqrMagnitude [get] |
static Vector4 | zero [get] |
static Vector4 | one [get] |
static Vector4 | positiveInfinity [get] |
static Vector4 | negativeInfinity [get] |
Definition at line 7 of file Vector4.cs.
FalcoEngine.Vector4.Vector4 | ( | float | x, |
float | y, | ||
float | z, | ||
float | w | ||
) |
Creates a new vector with given x, y, z, w components.
x | |
y | |
z | |
w |
Definition at line 21 of file Vector4.cs.
FalcoEngine.Vector4.Vector4 | ( | float | x, |
float | y, | ||
float | z | ||
) |
Creates a new vector with given x, y, z components and sets w to zero.
x | |
y | |
z |
Definition at line 35 of file Vector4.cs.
FalcoEngine.Vector4.Vector4 | ( | float | x, |
float | y | ||
) |
Creates a new vector with given x, y components and sets z and w to zero.
x | |
y |
Definition at line 48 of file Vector4.cs.
override bool FalcoEngine.Vector4.Equals | ( | object | other | ) |
Returns true if the given vector is exactly equal to this vector.
other |
Definition at line 229 of file Vector4.cs.
bool FalcoEngine.Vector4.Equals | ( | Vector4 | other | ) |
Definition at line 238 of file Vector4.cs.
override int FalcoEngine.Vector4.GetHashCode | ( | ) |
Definition at line 220 of file Vector4.cs.
Linearly interpolates between two vectors.
a | |
b | |
t |
Definition at line 160 of file Vector4.cs.
Linearly interpolates between two vectors.
a | |
b | |
t |
Definition at line 172 of file Vector4.cs.
|
static |
Definition at line 303 of file Vector4.cs.
Returns a vector that is made from the largest components of two vectors.
lhs | |
rhs |
Definition at line 323 of file Vector4.cs.
Returns a vector that is made from the smallest components of two vectors.
lhs | |
rhs |
Definition at line 313 of file Vector4.cs.
|
static |
Moves a point current towards target.
current | |
target | |
maxDistanceDelta |
Definition at line 183 of file Vector4.cs.
void FalcoEngine.Vector4.Normalize | ( | ) |
Makes this vector have a magnitude of 1.
Definition at line 260 of file Vector4.cs.
a |
Definition at line 247 of file Vector4.cs.
Definition at line 388 of file Vector4.cs.
Definition at line 378 of file Vector4.cs.
Definition at line 383 of file Vector4.cs.
Definition at line 373 of file Vector4.cs.
Definition at line 368 of file Vector4.cs.
Definition at line 348 of file Vector4.cs.
Definition at line 343 of file Vector4.cs.
Definition at line 328 of file Vector4.cs.
Definition at line 338 of file Vector4.cs.
Definition at line 333 of file Vector4.cs.
Definition at line 353 of file Vector4.cs.
Definition at line 358 of file Vector4.cs.
void FalcoEngine.Vector4.Scale | ( | Vector4 | scale | ) |
Multiplies every component of this vector by the same component of scale.
scale |
Definition at line 212 of file Vector4.cs.
void FalcoEngine.Vector4.Set | ( | float | newX, |
float | newY, | ||
float | newZ, | ||
float | newW | ||
) |
Set x, y, z and w components of an existing Vector4.
newX | |
newY | |
newZ | |
newW |
Definition at line 146 of file Vector4.cs.
float FalcoEngine.Vector4.SqrMagnitude | ( | ) |
Definition at line 416 of file Vector4.cs.
|
static |
Definition at line 411 of file Vector4.cs.
override string FalcoEngine.Vector4.ToString | ( | ) |
Returns a nicely formatted string for this vector.
format |
Definition at line 397 of file Vector4.cs.
string FalcoEngine.Vector4.ToString | ( | string | format | ) |
Returns a nicely formatted string for this vector.
format |
Definition at line 406 of file Vector4.cs.
float FalcoEngine.Vector4.w |
Definition at line 12 of file Vector4.cs.
float FalcoEngine.Vector4.x |
Definition at line 9 of file Vector4.cs.
float FalcoEngine.Vector4.y |
Definition at line 10 of file Vector4.cs.
float FalcoEngine.Vector4.z |
Definition at line 11 of file Vector4.cs.
|
get |
Returns the length of this vector (Read Only).
Definition at line 112 of file Vector4.cs.
|
staticget |
Shorthand for writing Vector4(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity).
Definition at line 137 of file Vector4.cs.
|
get |
Returns this vector with a magnitude of 1 (Read Only).
Definition at line 107 of file Vector4.cs.
|
staticget |
Shorthand for writing Vector4(1,1,1,1).
Definition at line 127 of file Vector4.cs.
|
staticget |
Shorthand for writing Vector4(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity).
Definition at line 132 of file Vector4.cs.
|
get |
Returns the squared length of this vector (Read Only).
Definition at line 117 of file Vector4.cs.
|
getset |
Definition at line 64 of file Vector4.cs.
|
staticget |
Shorthand for writing Vector4(0,0,0,0).
Definition at line 122 of file Vector4.cs.