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

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)
 
string ToString (string format, IFormatProvider formatProvider)
 
float SqrMagnitude ()
 

Static Public Member Functions

static Vector4 Lerp (Vector4 a, Vector4 b, float t)
 
static Vector4 LerpUnclamped (Vector4 a, Vector4 b, float t)
 
static Vector4 MoveTowards (Vector4 current, Vector4 target, float maxDistanceDelta)
 
static Vector4 Scale (Vector4 a, Vector4 b)
 
static Vector4 Normalize (Vector4 a)
 
static float Dot (Vector4 a, Vector4 b)
 
static Vector4 Project (Vector4 a, Vector4 b)
 
static float Distance (Vector4 a, Vector4 b)
 
static float Magnitude (Vector4 a)
 
static Vector4 Min (Vector4 lhs, Vector4 rhs)
 
static Vector4 Max (Vector4 lhs, Vector4 rhs)
 
static Vector4 operator+ (Vector4 a, Vector4 b)
 
static Vector4 operator- (Vector4 a, Vector4 b)
 
static Vector4 operator- (Vector4 a)
 
static Vector4 operator* (Vector4 a, float d)
 
static Vector4 operator* (float d, Vector4 a)
 
static Vector4 operator/ (Vector4 a, float d)
 
static bool operator== (Vector4 lhs, Vector4 rhs)
 
static bool operator!= (Vector4 lhs, Vector4 rhs)
 
static implicit operator Vector4 (Vector3 v)
 
static implicit operator Vector3 (Vector4 v)
 
static implicit operator Vector4 (Vector2 v)
 
static implicit operator Vector2 (Vector4 v)
 
static float SqrMagnitude (Vector4 a)
 

Public Attributes

float x
 
float y
 
float z
 
float w
 

Properties

float this[int index] [get, set]
 
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]
 

Detailed Description

Definition at line 7 of file Vector4.cs.

Constructor & Destructor Documentation

◆ Vector4() [1/3]

Vector4.Vector4 ( float x,
float y,
float z,
float w )

Definition at line 178 of file Vector4.cs.

◆ Vector4() [2/3]

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

Definition at line 197 of file Vector4.cs.

◆ Vector4() [3/3]

Vector4.Vector4 ( float x,
float y )

Definition at line 214 of file Vector4.cs.

Member Function Documentation

◆ Distance()

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

Definition at line 430 of file Vector4.cs.

◆ Dot()

static float Vector4.Dot ( Vector4 a,
Vector4 b )
static

Definition at line 402 of file Vector4.cs.

◆ Equals() [1/2]

override bool Vector4.Equals ( object other)

Definition at line 345 of file Vector4.cs.

◆ Equals() [2/2]

bool Vector4.Equals ( Vector4 other)

Definition at line 356 of file Vector4.cs.

◆ GetHashCode()

override int Vector4.GetHashCode ( )

Definition at line 333 of file Vector4.cs.

◆ Lerp()

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

Definition at line 254 of file Vector4.cs.

◆ LerpUnclamped()

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

Definition at line 271 of file Vector4.cs.

◆ Magnitude()

static float Vector4.Magnitude ( Vector4 a)
static

Definition at line 436 of file Vector4.cs.

◆ Max()

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

Definition at line 464 of file Vector4.cs.

◆ Min()

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

Definition at line 450 of file Vector4.cs.

◆ MoveTowards()

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

Definition at line 287 of file Vector4.cs.

◆ Normalize() [1/2]

void Vector4.Normalize ( )

Definition at line 380 of file Vector4.cs.

◆ Normalize() [2/2]

static Vector4 Vector4.Normalize ( Vector4 a)
static

Definition at line 365 of file Vector4.cs.

◆ operator Vector2()

static implicit Vector4.operator Vector2 ( Vector4 v)
static

Definition at line 541 of file Vector4.cs.

◆ operator Vector3()

static implicit Vector4.operator Vector3 ( Vector4 v)
static

Definition at line 529 of file Vector4.cs.

◆ operator Vector4() [1/2]

static implicit Vector4.operator Vector4 ( Vector2 v)
static

Definition at line 535 of file Vector4.cs.

◆ operator Vector4() [2/2]

static implicit Vector4.operator Vector4 ( Vector3 v)
static

Definition at line 523 of file Vector4.cs.

◆ operator!=()

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

Definition at line 517 of file Vector4.cs.

◆ operator*() [1/2]

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

Definition at line 494 of file Vector4.cs.

◆ operator*() [2/2]

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

Definition at line 488 of file Vector4.cs.

◆ operator+()

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

Definition at line 470 of file Vector4.cs.

◆ operator-() [1/2]

static Vector4 Vector4.operator- ( Vector4 a)
static

Definition at line 482 of file Vector4.cs.

◆ operator-() [2/2]

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

Definition at line 476 of file Vector4.cs.

◆ operator/()

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

Definition at line 500 of file Vector4.cs.

◆ operator==()

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

Definition at line 506 of file Vector4.cs.

◆ Project()

static Vector4 Vector4.Project ( Vector4 a,
Vector4 b )
static

Definition at line 416 of file Vector4.cs.

◆ Scale() [1/2]

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

Definition at line 312 of file Vector4.cs.

◆ Scale() [2/2]

void Vector4.Scale ( Vector4 scale)

Definition at line 324 of file Vector4.cs.

◆ Set()

void Vector4.Set ( float newX,
float newY,
float newZ,
float newW )

Definition at line 235 of file Vector4.cs.

◆ SqrMagnitude() [1/2]

float Vector4.SqrMagnitude ( )

Definition at line 611 of file Vector4.cs.

◆ SqrMagnitude() [2/2]

static float Vector4.SqrMagnitude ( Vector4 a)
static

Definition at line 605 of file Vector4.cs.

◆ ToString() [1/3]

override string Vector4.ToString ( )

Definition at line 557 of file Vector4.cs.

◆ ToString() [2/3]

string Vector4.ToString ( string format)

Definition at line 573 of file Vector4.cs.

◆ ToString() [3/3]

string Vector4.ToString ( string format,
IFormatProvider formatProvider )

Definition at line 589 of file Vector4.cs.

Member Data Documentation

◆ w

float Vector4.w

Definition at line 27 of file Vector4.cs.

◆ x

float Vector4.x

Definition at line 12 of file Vector4.cs.

◆ y

float Vector4.y

Definition at line 17 of file Vector4.cs.

◆ z

float Vector4.z

Definition at line 22 of file Vector4.cs.

Property Documentation

◆ magnitude

float Vector4.magnitude
get

Definition at line 94 of file Vector4.cs.

◆ negativeInfinity

Vector4 Vector4.negativeInfinity
staticget

Definition at line 156 of file Vector4.cs.

◆ normalized

Vector4 Vector4.normalized
get

Definition at line 82 of file Vector4.cs.

◆ one

Vector4 Vector4.one
staticget

Definition at line 130 of file Vector4.cs.

◆ positiveInfinity

Vector4 Vector4.positiveInfinity
staticget

Definition at line 143 of file Vector4.cs.

◆ sqrMagnitude

float Vector4.sqrMagnitude
get

Definition at line 106 of file Vector4.cs.

◆ this[int index]

float Vector4.this[int index]
getset

Definition at line 37 of file Vector4.cs.

◆ zero

Vector4 Vector4.zero
staticget

Definition at line 118 of file Vector4.cs.


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