Inherits IEquatable< Vector3 >.
Public Member Functions | |
Vector3 (float xCoord, float yCoord, float zCoord) | |
Vector3 (Vector2 v) | |
Vector3 (Vector4 v) | |
override int | GetHashCode () |
override bool | Equals (object obj) |
bool | Equals (Vector3 other) |
override string | ToString () |
float | Dot (Vector3 v) |
Returns the dot product of this Vector3 and Vector3 v. If the vectors are normalized the value will always be between 1 (vectors are the same) and -1 (vectors are opposites). More... | |
Vector3 | Cross (Vector3 v) |
Cross this vector with the specified vector. More... | |
bool | IsZero (float epsilon=0) |
bool | IsNearlyZero () |
Static Public Member Functions | |
static implicit | operator Vec3 (Vector3 managedVector) |
static implicit | operator Vector3 (Vec3 nativeVector) |
static | operator Vector3 (Vector2 vector) |
static | operator Vector3 (Vector4 vector) |
static Vector3 | operator* (Vector3 v, float scale) |
static Vector3 | operator* (float scale, Vector3 v) |
static Vector3 | operator/ (Vector3 v, float scale) |
static Vector3 | operator+ (Vector3 v0, Vector3 v1) |
static Vector3 | operator- (Vector3 v0, Vector3 v1) |
static Vector3 | operator- (Vector3 v) |
static Vector3 | operator! (Vector3 v) |
static bool | operator== (Vector3 left, Vector3 right) |
static bool | operator!= (Vector3 left, Vector3 right) |
static float | Dot (Vector3 a, Vector3 b) |
Returns the dot product of Vector3 a and b. If the vectors are normalized the value will always be between 1 (vectors are the same) and -1 (vectors are opposites). More... | |
static Vector3 | Cross (Vector3 a, Vector3 b) |
Cross the specified a and b vectors. More... | |
static Vector3 | Lerp (Vector3 p, Vector3 q, float t) |
static Vector3 | LerpUnclamped (Vector3 p, Vector3 q, float t) |
static Vector3 | Slerp (Vector3 p, Vector3 q, float t) |
static Vector3 | SlerpUnclamped (Vector3 p, Vector3 q, float t) |
static float | Angle (Vector3 a, Vector3 b) |
Returns the angle in radians between Vector3 a and b in radians. If the magnitude of a or b is 0, it will return 0. More... | |
static float | FlatAngle (Vector3 a, Vector3 b) |
Returns the angle in radians between Vector3 a and b, but disregards the Z-axis. If the magnitude of a or b is 0, it will return 0. More... | |
Static Public Attributes | |
static readonly Vector3 | Zero = new Vector3(0, 0, 0) |
static readonly Vector3 | One = new Vector3(1, 1, 1) |
static readonly Vector3 | Up = new Vector3(0, 0, 1) |
static readonly Vector3 | Down = new Vector3(0, 0, -1) |
static readonly Vector3 | Forward = new Vector3(0, 1, 0) |
static readonly Vector3 | Back = new Vector3(0, -1, 0) |
static readonly Vector3 | Left = new Vector3(-1, 0, 0) |
static readonly Vector3 | Right = new Vector3(1, 0, 0) |
Properties | |
float | x [get, set] |
float | y [get, set] |
float | z [get, set] |
float | X [get, set] |
float | Y [get, set] |
float | Z [get, set] |
float | Length [get, set] |
float | Magnitude [get] |
float | LengthSquared [get] |
float | Length2D [get] |
float | Magnitude2D [get] |
float | Length2DSquared [get] |
Vector3 | Normalized [get] |
float | Volume [get] |
Vector3 | Absolute [get] |
Vector3 | Flipped [get] |
Vector3 | Orthogonal [get] |
Returns a vector that is orthogonal to this one More... | |
float | this[int index] [get, set] |
Gets individual axes by index More... | |
|
inline |
|
inline |
|
inline |
Cross this vector with the specified vector.
v | The other vector. |
Cross the specified a and b vectors.
a | Vector a. |
b | Vector b. |
|
inline |
Returns the dot product of Vector3 a and b. If the vectors are normalized the value will always be between 1 (vectors are the same) and -1 (vectors are opposites).
a | Direction vector a. |
b | Direction vector b. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline static |
|
inline static |
|
inline static |
|
inline |
|
get |
|
get |
|
get set |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
Returns a vector that is orthogonal to this one
|
get set |
Gets individual axes by index
index | Index, 0 - 2 where 0 is X and 2 is Z |
|
get |
|
get set |
|
get set |
|
get set |
|
get set |
|
get set |
|
get set |