Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Microsoft.Xna.Framework.Vector3 Struct Reference

Public Member Functions

 Vector3 (float x, float y, float z)
 
 Vector3 (float value)
 
 Vector3 (Vector2 value, float z)
 
override string ToString ()
 
bool Equals (Vector3 other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
float Length ()
 
float LengthSquared ()
 
void Normalize ()
 
bool Equals (T? other)
 

Static Public Member Functions

static float Distance (Vector3 value1, Vector3 value2)
 
static void Distance (ref Vector3 value1, ref Vector3 value2, out float result)
 
static float DistanceSquared (Vector3 value1, Vector3 value2)
 
static void DistanceSquared (ref Vector3 value1, ref Vector3 value2, out float result)
 
static float Dot (Vector3 vector1, Vector3 vector2)
 
static void Dot (ref Vector3 vector1, ref Vector3 vector2, out float result)
 
static Vector3 Normalize (Vector3 value)
 
static void Normalize (ref Vector3 value, out Vector3 result)
 
static Vector3 Cross (Vector3 vector1, Vector3 vector2)
 
static void Cross (ref Vector3 vector1, ref Vector3 vector2, out Vector3 result)
 
static Vector3 Reflect (Vector3 vector, Vector3 normal)
 
static void Reflect (ref Vector3 vector, ref Vector3 normal, out Vector3 result)
 
static Vector3 Min (Vector3 value1, Vector3 value2)
 
static void Min (ref Vector3 value1, ref Vector3 value2, out Vector3 result)
 
static Vector3 Max (Vector3 value1, Vector3 value2)
 
static void Max (ref Vector3 value1, ref Vector3 value2, out Vector3 result)
 
static Vector3 Clamp (Vector3 value1, Vector3 min, Vector3 max)
 
static void Clamp (ref Vector3 value1, ref Vector3 min, ref Vector3 max, out Vector3 result)
 
static Vector3 Lerp (Vector3 value1, Vector3 value2, float amount)
 
static void Lerp (ref Vector3 value1, ref Vector3 value2, float amount, out Vector3 result)
 
static Vector3 Barycentric (Vector3 value1, Vector3 value2, Vector3 value3, float amount1, float amount2)
 
static void Barycentric (ref Vector3 value1, ref Vector3 value2, ref Vector3 value3, float amount1, float amount2, out Vector3 result)
 
static Vector3 SmoothStep (Vector3 value1, Vector3 value2, float amount)
 
static void SmoothStep (ref Vector3 value1, ref Vector3 value2, float amount, out Vector3 result)
 
static Vector3 CatmullRom (Vector3 value1, Vector3 value2, Vector3 value3, Vector3 value4, float amount)
 
static void CatmullRom (ref Vector3 value1, ref Vector3 value2, ref Vector3 value3, ref Vector3 value4, float amount, out Vector3 result)
 
static Vector3 Hermite (Vector3 value1, Vector3 tangent1, Vector3 value2, Vector3 tangent2, float amount)
 
static void Hermite (ref Vector3 value1, ref Vector3 tangent1, ref Vector3 value2, ref Vector3 tangent2, float amount, out Vector3 result)
 
static Vector3 Transform (Vector3 position, Matrix matrix)
 
static void Transform (ref Vector3 position, ref Matrix matrix, out Vector3 result)
 
static Vector3 TransformNormal (Vector3 normal, Matrix matrix)
 
static void TransformNormal (ref Vector3 normal, ref Matrix matrix, out Vector3 result)
 
static Vector3 Transform (Vector3 value, Quaternion rotation)
 
static void Transform (ref Vector3 value, ref Quaternion rotation, out Vector3 result)
 
static void Transform (Vector3[] sourceArray, ref Matrix matrix, Vector3[] destinationArray)
 
static void Transform (Vector3[] sourceArray, int sourceIndex, ref Matrix matrix, Vector3[] destinationArray, int destinationIndex, int length)
 
static void TransformNormal (Vector3[] sourceArray, ref Matrix matrix, Vector3[] destinationArray)
 
static void TransformNormal (Vector3[] sourceArray, int sourceIndex, ref Matrix matrix, Vector3[] destinationArray, int destinationIndex, int length)
 
static void Transform (Vector3[] sourceArray, ref Quaternion rotation, Vector3[] destinationArray)
 
static void Transform (Vector3[] sourceArray, int sourceIndex, ref Quaternion rotation, Vector3[] destinationArray, int destinationIndex, int length)
 
static Vector3 Negate (Vector3 value)
 
static void Negate (ref Vector3 value, out Vector3 result)
 
static Vector3 Add (Vector3 value1, Vector3 value2)
 
static void Add (ref Vector3 value1, ref Vector3 value2, out Vector3 result)
 
static Vector3 Subtract (Vector3 value1, Vector3 value2)
 
static void Subtract (ref Vector3 value1, ref Vector3 value2, out Vector3 result)
 
static Vector3 Multiply (Vector3 value1, Vector3 value2)
 
static void Multiply (ref Vector3 value1, ref Vector3 value2, out Vector3 result)
 
static Vector3 Multiply (Vector3 value1, float scaleFactor)
 
static void Multiply (ref Vector3 value1, float scaleFactor, out Vector3 result)
 
static Vector3 Divide (Vector3 value1, Vector3 value2)
 
static void Divide (ref Vector3 value1, ref Vector3 value2, out Vector3 result)
 
static Vector3 Divide (Vector3 value1, float value2)
 
static void Divide (ref Vector3 value1, float value2, out Vector3 result)
 
static Vector3 operator- (Vector3 value)
 
static bool operator== (Vector3 value1, Vector3 value2)
 
static bool operator!= (Vector3 value1, Vector3 value2)
 
static Vector3 operator+ (Vector3 value1, Vector3 value2)
 
static Vector3 operator- (Vector3 value1, Vector3 value2)
 
static Vector3 operator* (Vector3 value1, Vector3 value2)
 
static Vector3 operator* (Vector3 value, float scaleFactor)
 
static Vector3 operator* (float scaleFactor, Vector3 value)
 
static Vector3 operator/ (Vector3 value1, Vector3 value2)
 
static Vector3 operator/ (Vector3 value, float divider)
 

Public Attributes

float X
 
float Y
 
float Z
 

Properties

static Vector3 Zero [get]
 
static Vector3 One [get]
 
static Vector3 UnitX [get]
 
static Vector3 UnitY [get]
 
static Vector3 UnitZ [get]
 
static Vector3 Up [get]
 
static Vector3 Down [get]
 
static Vector3 Right [get]
 
static Vector3 Left [get]
 
static Vector3 Forward [get]
 
static Vector3 Backward [get]
 

Static Private Attributes

static Vector3 _zero = default(Vector3)
 
static Vector3 _one = new Vector3(1f, 1f, 1f)
 
static Vector3 _unitX = new Vector3(1f, 0f, 0f)
 
static Vector3 _unitY = new Vector3(0f, 1f, 0f)
 
static Vector3 _unitZ = new Vector3(0f, 0f, 1f)
 
static Vector3 _up = new Vector3(0f, 1f, 0f)
 
static Vector3 _down = new Vector3(0f, -1f, 0f)
 
static Vector3 _right = new Vector3(1f, 0f, 0f)
 
static Vector3 _left = new Vector3(-1f, 0f, 0f)
 
static Vector3 _forward = new Vector3(0f, 0f, -1f)
 
static Vector3 _backward = new Vector3(0f, 0f, 1f)
 

Detailed Description

Definition at line 11 of file Vector3.cs.


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