![]() |
Falco Engine 3.9.0.1 (beta)
|
Public Member Functions | |
Vector3 (float x, float y, float z) | |
void | Scale (Vector3 scale) |
override int | GetHashCode () |
override bool | Equals (object other) |
bool | Equals (Vector3 other) |
void | Normalize () |
override string | ToString () |
string | ToString (string format) |
Static Public Member Functions | |
static Vector3 | operator+ (Vector3 a, Vector3 b) |
static Vector3 | operator- (Vector3 a, Vector3 b) |
static Vector3 | operator- (Vector3 a) |
static Vector3 | operator* (Vector3 a, float b) |
static Vector3 | operator* (float d, Vector3 a) |
static Vector3 | operator/ (Vector3 a, float d) |
static bool | operator== (Vector3 lhs, Vector3 rhs) |
static bool | operator!= (Vector3 lhs, Vector3 rhs) |
static Vector3 | Lerp (Vector3 a, Vector3 b, float t) |
static Vector3 | LerpUnclamped (Vector3 a, Vector3 b, float t) |
static Vector3 | Cross (Vector3 lhs, Vector3 rhs) |
static Vector3 | Reflect (Vector3 inDirection, Vector3 inNormal) |
static Vector3 | Normalize (Vector3 value) |
static float | Dot (Vector3 lhs, Vector3 rhs) |
static Vector3 | Project (Vector3 vector, Vector3 onNormal) |
static Vector3 | ProjectOnPlane (Vector3 vector, Vector3 planeNormal) |
static float | Angle (Vector3 from, Vector3 to) |
static float | SignedAngle (Vector3 from, Vector3 to, Vector3 axis) |
static float | Distance (Vector3 a, Vector3 b) |
static Vector3 | ClampMagnitude (Vector3 vector, float maxLength) |
static float | Magnitude (Vector3 vector) |
static float | SqrMagnitude (Vector3 vector) |
static Vector3 | Min (Vector3 lhs, Vector3 rhs) |
static Vector3 | Max (Vector3 lhs, Vector3 rhs) |
Public Attributes | |
float | x |
float | y |
float | z |
Static Public Attributes | |
const float | kEpsilon = 1E-05f |
const float | kEpsilonNormalSqrt = 1E-15f |
Properties | |
static Vector3 | zero = new Vector3(0f, 0f, 0f) [get] |
static Vector3 | one = new Vector3(1f, 1f, 1f) [get] |
static Vector3 | forward = new Vector3(0f, 0f, 1f) [get] |
static Vector3 | back = new Vector3(0f, 0f, -1f) [get] |
static Vector3 | up = new Vector3(0f, 1f, 0f) [get] |
static Vector3 | down = new Vector3(0f, -1f, 0f) [get] |
static Vector3 | left = new Vector3(-1f, 0f, 0f) [get] |
static Vector3 | right = new Vector3(1f, 0f, 0f) [get] |
static Vector3 | positiveInfinity = new Vector3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity) [get] |
static Vector3 | negativeInfinity = new Vector3(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity) [get] |
float | magnitude [get] |
float | sqrMagnitude [get] |
Vector3 | normalized [get] |
Definition at line 8 of file Vector3.cs.
FalcoEngine.Vector3.Vector3 | ( | float | x, |
float | y, | ||
float | z | ||
) |
Definition at line 17 of file Vector3.cs.
Returns the angle in degrees between from and to.
from | The vector from which the angular difference is measured. |
to | The vector to which the angular difference is measured. |
Definition at line 273 of file Vector3.cs.
Returns a copy of vector with its magnitude clamped to maxLength.
vector | |
maxLength |
Definition at line 313 of file Vector3.cs.
override bool FalcoEngine.Vector3.Equals | ( | object | other | ) |
Returns true if the given vector is exactly equal to this vector.
other |
Definition at line 169 of file Vector3.cs.
bool FalcoEngine.Vector3.Equals | ( | Vector3 | other | ) |
Definition at line 178 of file Vector3.cs.
override int FalcoEngine.Vector3.GetHashCode | ( | ) |
Definition at line 160 of file Vector3.cs.
Linearly interpolates between two vectors.
a | |
b | |
t |
Definition at line 132 of file Vector3.cs.
Linearly interpolates between two vectors.
a | |
b | |
t |
Definition at line 144 of file Vector3.cs.
|
static |
Definition at line 322 of file Vector3.cs.
Returns a vector that is made from the largest components of two vectors.
lhs | |
rhs |
Definition at line 347 of file Vector3.cs.
Returns a vector that is made from the smallest components of two vectors.
lhs | |
rhs |
Definition at line 337 of file Vector3.cs.
void FalcoEngine.Vector3.Normalize | ( | ) |
Definition at line 217 of file Vector3.cs.
Makes this vector have a magnitude of 1.
value |
Definition at line 207 of file Vector3.cs.
Definition at line 59 of file Vector3.cs.
Definition at line 44 of file Vector3.cs.
Definition at line 39 of file Vector3.cs.
Definition at line 24 of file Vector3.cs.
Definition at line 34 of file Vector3.cs.
Definition at line 29 of file Vector3.cs.
Definition at line 49 of file Vector3.cs.
Definition at line 54 of file Vector3.cs.
Projects a vector onto another vector.
vector | |
onNormal |
Definition at line 245 of file Vector3.cs.
Projects a vector onto a plane defined by a normal orthogonal to the plane.
vector | |
planeNormal |
Definition at line 260 of file Vector3.cs.
Reflects a vector off the plane defined by a normal.
inDirection | |
inNormal |
Definition at line 198 of file Vector3.cs.
void FalcoEngine.Vector3.Scale | ( | Vector3 | scale | ) |
Multiplies every component of this vector by the same component of scale.
scale |
Definition at line 153 of file Vector3.cs.
Returns the signed angle in degrees between from and to.
from | The vector from which the angular difference is measured. |
to | The vector to which the angular difference is measured. |
axis | A vector around which the other vectors are rotated. |
Definition at line 290 of file Vector3.cs.
|
static |
Definition at line 327 of file Vector3.cs.
override string FalcoEngine.Vector3.ToString | ( | ) |
Returns a nicely formatted string for this vector.
format |
Definition at line 356 of file Vector3.cs.
string FalcoEngine.Vector3.ToString | ( | string | format | ) |
Returns a nicely formatted string for this vector.
format |
Definition at line 365 of file Vector3.cs.
|
static |
Definition at line 14 of file Vector3.cs.
|
static |
Definition at line 15 of file Vector3.cs.
float FalcoEngine.Vector3.x |
Definition at line 10 of file Vector3.cs.
float FalcoEngine.Vector3.y |
Definition at line 11 of file Vector3.cs.
float FalcoEngine.Vector3.z |
Definition at line 12 of file Vector3.cs.
Shorthand for writing Vector3(0, 0, -1).
Definition at line 82 of file Vector3.cs.
Shorthand for writing Vector3(0, -1, 0).
Definition at line 92 of file Vector3.cs.
Shorthand for writing Vector3(0, 0, 1).
Definition at line 77 of file Vector3.cs.
Shorthand for writing Vector3(-1, 0, 0).
Definition at line 97 of file Vector3.cs.
|
get |
Definition at line 114 of file Vector3.cs.
|
staticget |
Shorthand for writing Vector3(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity).
Definition at line 112 of file Vector3.cs.
|
get |
Returns this vector with a magnitude of 1 (Read Only).
Definition at line 124 of file Vector3.cs.
Shorthand for writing Vector3(1, 1, 1).
Definition at line 72 of file Vector3.cs.
|
staticget |
Shorthand for writing Vector3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity).
Definition at line 107 of file Vector3.cs.
Shorthand for writing Vector3(1, 0, 0).
Definition at line 102 of file Vector3.cs.
|
get |
Returns the squared length of this vector (Read Only).
Definition at line 119 of file Vector3.cs.
Shorthand for writing Vector3(0, 1, 0).
Definition at line 87 of file Vector3.cs.
Shorthand for writing Vector3(0, 0, 0).
Definition at line 67 of file Vector3.cs.