Unravel Engine C# Reference
Loading...
Searching...
No Matches
Vector3 Struct Reference
Inheritance diagram for Vector3:

Public Member Functions

 Vector3 (float x, float y, float z)
 
 Vector3 (float x, float y)
 
void Set (float newX, float newY, float newZ)
 
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)
 
string ToString (string format, IFormatProvider formatProvider)
 

Static Public Member Functions

static Vector3 Slerp (Vector3 a, Vector3 b, float t)
 
static Vector3 SlerpClamped (Vector3 a, Vector3 b, float t)
 
static Vector3 Lerp (Vector3 a, Vector3 b, float t)
 
static Vector3 LerpUnclamped (Vector3 a, Vector3 b, float t)
 
static Vector3 MoveTowards (Vector3 current, Vector3 target, float maxDistanceDelta)
 
static Vector3 SmoothDamp (Vector3 current, Vector3 target, ref Vector3 currentVelocity, float smoothTime, float maxSpeed, float deltaTime)
 
static Vector3 Scale (Vector3 a, Vector3 b)
 
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)
 
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 d)
 
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)
 

Public Attributes

float x
 
float y
 
float z
 

Properties

float this[int index] [get, set]
 
Vector3 normalized [get]
 
float magnitude [get]
 
float sqrMagnitude [get]
 
static Vector3 zero [get]
 
static Vector3 one [get]
 
static Vector3 forward [get]
 
static Vector3 back [get]
 
static Vector3 up [get]
 
static Vector3 down [get]
 
static Vector3 left [get]
 
static Vector3 right [get]
 
static Vector3 positiveInfinity [get]
 
static Vector3 negativeInfinity [get]
 

Detailed Description

Definition at line 7 of file Vector3.cs.

Constructor & Destructor Documentation

◆ Vector3() [1/2]

Vector3.Vector3 ( float x,
float y,
float z )

Definition at line 413 of file Vector3.cs.

◆ Vector3() [2/2]

Vector3.Vector3 ( float x,
float y )

Definition at line 430 of file Vector3.cs.

Member Function Documentation

◆ Angle()

static float Vector3.Angle ( Vector3 from,
Vector3 to )
static

Definition at line 650 of file Vector3.cs.

◆ ClampMagnitude()

static Vector3 Vector3.ClampMagnitude ( Vector3 vector,
float maxLength )
static

Definition at line 716 of file Vector3.cs.

◆ Cross()

static Vector3 Vector3.Cross ( Vector3 lhs,
Vector3 rhs )
static

Definition at line 494 of file Vector3.cs.

◆ Distance()

static float Vector3.Distance ( Vector3 a,
Vector3 b )
static

Definition at line 699 of file Vector3.cs.

◆ Dot()

static float Vector3.Dot ( Vector3 lhs,
Vector3 rhs )
static

Definition at line 584 of file Vector3.cs.

◆ Equals() [1/2]

override bool Vector3.Equals ( object other)

Definition at line 512 of file Vector3.cs.

◆ Equals() [2/2]

bool Vector3.Equals ( Vector3 other)

Definition at line 523 of file Vector3.cs.

◆ GetHashCode()

override int Vector3.GetHashCode ( )

Definition at line 500 of file Vector3.cs.

◆ Lerp()

static Vector3 Vector3.Lerp ( Vector3 a,
Vector3 b,
float t )
static

Definition at line 291 of file Vector3.cs.

◆ LerpUnclamped()

static Vector3 Vector3.LerpUnclamped ( Vector3 a,
Vector3 b,
float t )
static

Definition at line 308 of file Vector3.cs.

◆ Magnitude()

static float Vector3.Magnitude ( Vector3 vector)
static

Definition at line 732 of file Vector3.cs.

◆ Max()

static Vector3 Vector3.Max ( Vector3 lhs,
Vector3 rhs )
static

Definition at line 766 of file Vector3.cs.

◆ Min()

static Vector3 Vector3.Min ( Vector3 lhs,
Vector3 rhs )
static

Definition at line 752 of file Vector3.cs.

◆ MoveTowards()

static Vector3 Vector3.MoveTowards ( Vector3 current,
Vector3 target,
float maxDistanceDelta )
static

Definition at line 331 of file Vector3.cs.

◆ Normalize() [1/2]

void Vector3.Normalize ( )

Definition at line 562 of file Vector3.cs.

◆ Normalize() [2/2]

static Vector3 Vector3.Normalize ( Vector3 value)
static

Definition at line 550 of file Vector3.cs.

◆ operator!=()

static bool Vector3.operator!= ( Vector3 lhs,
Vector3 rhs )
static

Definition at line 818 of file Vector3.cs.

◆ operator*() [1/2]

static Vector3 Vector3.operator* ( float d,
Vector3 a )
static

Definition at line 796 of file Vector3.cs.

◆ operator*() [2/2]

static Vector3 Vector3.operator* ( Vector3 a,
float d )
static

Definition at line 790 of file Vector3.cs.

◆ operator+()

static Vector3 Vector3.operator+ ( Vector3 a,
Vector3 b )
static

Definition at line 772 of file Vector3.cs.

◆ operator-() [1/2]

static Vector3 Vector3.operator- ( Vector3 a)
static

Definition at line 784 of file Vector3.cs.

◆ operator-() [2/2]

static Vector3 Vector3.operator- ( Vector3 a,
Vector3 b )
static

Definition at line 778 of file Vector3.cs.

◆ operator/()

static Vector3 Vector3.operator/ ( Vector3 a,
float d )
static

Definition at line 802 of file Vector3.cs.

◆ operator==()

static bool Vector3.operator== ( Vector3 lhs,
Vector3 rhs )
static

Definition at line 808 of file Vector3.cs.

◆ Project()

static Vector3 Vector3.Project ( Vector3 vector,
Vector3 onNormal )
static

Definition at line 598 of file Vector3.cs.

◆ ProjectOnPlane()

static Vector3 Vector3.ProjectOnPlane ( Vector3 vector,
Vector3 planeNormal )
static

Definition at line 624 of file Vector3.cs.

◆ Reflect()

static Vector3 Vector3.Reflect ( Vector3 inDirection,
Vector3 inNormal )
static

Definition at line 537 of file Vector3.cs.

◆ Scale() [1/2]

static Vector3 Vector3.Scale ( Vector3 a,
Vector3 b )
static

Definition at line 466 of file Vector3.cs.

◆ Scale() [2/2]

void Vector3.Scale ( Vector3 scale)

Definition at line 478 of file Vector3.cs.

◆ Set()

void Vector3.Set ( float newX,
float newY,
float newZ )

Definition at line 450 of file Vector3.cs.

◆ SignedAngle()

static float Vector3.SignedAngle ( Vector3 from,
Vector3 to,
Vector3 axis )
static

Definition at line 680 of file Vector3.cs.

◆ Slerp()

static Vector3 Vector3.Slerp ( Vector3 a,
Vector3 b,
float t )
static

Definition at line 251 of file Vector3.cs.

◆ SlerpClamped()

static Vector3 Vector3.SlerpClamped ( Vector3 a,
Vector3 b,
float t )
static

Definition at line 268 of file Vector3.cs.

◆ SmoothDamp()

static Vector3 Vector3.SmoothDamp ( Vector3 current,
Vector3 target,
ref Vector3 currentVelocity,
float smoothTime,
float maxSpeed,
float deltaTime )
static

Definition at line 347 of file Vector3.cs.

◆ SqrMagnitude()

static float Vector3.SqrMagnitude ( Vector3 vector)
static

Definition at line 738 of file Vector3.cs.

◆ ToString() [1/3]

override string Vector3.ToString ( )

Definition at line 834 of file Vector3.cs.

◆ ToString() [2/3]

string Vector3.ToString ( string format)

Definition at line 850 of file Vector3.cs.

◆ ToString() [3/3]

string Vector3.ToString ( string format,
IFormatProvider formatProvider )

Definition at line 866 of file Vector3.cs.

Member Data Documentation

◆ x

float Vector3.x

Definition at line 12 of file Vector3.cs.

◆ y

float Vector3.y

Definition at line 17 of file Vector3.cs.

◆ z

float Vector3.z

Definition at line 22 of file Vector3.cs.

Property Documentation

◆ back

Vector3 Vector3.back
staticget

Definition at line 157 of file Vector3.cs.

◆ down

Vector3 Vector3.down
staticget

Definition at line 181 of file Vector3.cs.

◆ forward

Vector3 Vector3.forward
staticget

Definition at line 145 of file Vector3.cs.

◆ left

Vector3 Vector3.left
staticget

Definition at line 193 of file Vector3.cs.

◆ magnitude

float Vector3.magnitude
get

Definition at line 97 of file Vector3.cs.

◆ negativeInfinity

Vector3 Vector3.negativeInfinity
staticget

Definition at line 231 of file Vector3.cs.

◆ normalized

Vector3 Vector3.normalized
get

Definition at line 85 of file Vector3.cs.

◆ one

Vector3 Vector3.one
staticget

Definition at line 133 of file Vector3.cs.

◆ positiveInfinity

Vector3 Vector3.positiveInfinity
staticget

Definition at line 218 of file Vector3.cs.

◆ right

Vector3 Vector3.right
staticget

Definition at line 205 of file Vector3.cs.

◆ sqrMagnitude

float Vector3.sqrMagnitude
get

Definition at line 109 of file Vector3.cs.

◆ this[int index]

float Vector3.this[int index]
getset

Definition at line 45 of file Vector3.cs.

◆ up

Vector3 Vector3.up
staticget

Definition at line 169 of file Vector3.cs.

◆ zero

Vector3 Vector3.zero
staticget

Definition at line 121 of file Vector3.cs.


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