Struct Vector4
Assembly: Chroma.Mono.dll
Syntax
public struct Vector4 : IEquatable<Vector4>
Constructors
Vector4(Vector2)
Declaration
public Vector4(Vector2 vec)
Parameters
Vector4(Vector2, Single, Single)
Declaration
public Vector4(Vector2 vec, float z, float w)
Parameters
Type |
Name |
Description |
Vector2 |
vec |
|
System.Single |
z |
|
System.Single |
w |
|
Vector4(Vector3)
Declaration
public Vector4(Vector3 vec)
Parameters
Vector4(Vector3, Single)
Declaration
public Vector4(Vector3 vec, float w)
Parameters
Type |
Name |
Description |
Vector3 |
vec |
|
System.Single |
w |
|
Vector4(Single)
Declaration
public Vector4(float scalar)
Parameters
Type |
Name |
Description |
System.Single |
scalar |
|
Vector4(Single, Single, Single, Single)
Declaration
public Vector4(float x, float y, float z, float w)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
System.Single |
z |
|
System.Single |
w |
|
Fields
One
Declaration
public static Vector4 One
Field Value
W
Declaration
Field Value
Type |
Description |
System.Single |
|
X
Declaration
Field Value
Type |
Description |
System.Single |
|
Y
Declaration
Field Value
Type |
Description |
System.Single |
|
Z
Declaration
Field Value
Type |
Description |
System.Single |
|
Zero
Declaration
public static Vector4 Zero
Field Value
Methods
Clamp(Vector4, Vector4)
Declaration
public void Clamp(Vector4 min, Vector4 max)
Parameters
Cos(Vector4)
Declaration
public static Vector4 Cos(Vector4 vector)
Parameters
Type |
Name |
Description |
Vector4 |
vector |
|
Returns
Distance(Vector4)
Declaration
public float Distance(Vector4 other)
Parameters
Type |
Name |
Description |
Vector4 |
other |
|
Returns
Type |
Description |
System.Single |
|
Distance(Vector4, Vector4)
Declaration
public static float Distance(Vector4 first, Vector4 second)
Parameters
Returns
Type |
Description |
System.Single |
|
Equals(Vector4)
Declaration
public bool Equals(Vector4 right)
Parameters
Type |
Name |
Description |
Vector4 |
right |
|
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
Length()
Declaration
Returns
Type |
Description |
System.Single |
|
Lerp(Vector4, Vector4, Single)
Declaration
public static Vector4 Lerp(Vector4 from, Vector4 to, float t)
Parameters
Returns
Normalize()
Declaration
Normalized()
Declaration
public Vector4 Normalized()
Returns
Sin(Vector4)
Declaration
public static Vector4 Sin(Vector4 vector)
Parameters
Type |
Name |
Description |
Vector4 |
vector |
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
Addition(Vector4, Vector4)
Declaration
public static Vector4 operator +(Vector4 left, Vector4 right)
Parameters
Returns
Addition(Vector4, Single)
Declaration
public static Vector4 operator +(Vector4 left, float right)
Parameters
Type |
Name |
Description |
Vector4 |
left |
|
System.Single |
right |
|
Returns
Division(Vector4, Vector4)
Declaration
public static Vector4 operator /(Vector4 left, Vector4 right)
Parameters
Returns
Division(Vector4, Single)
Declaration
public static Vector4 operator /(Vector4 left, float scalar)
Parameters
Type |
Name |
Description |
Vector4 |
left |
|
System.Single |
scalar |
|
Returns
Equality(Vector4, Vector4)
Declaration
public static bool operator ==(Vector4 left, Vector4 right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(Vector4, Vector4)
Declaration
public static bool operator !=(Vector4 left, Vector4 right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Multiply(Vector4, Vector4)
Declaration
public static Vector4 operator *(Vector4 left, Vector4 right)
Parameters
Returns
Multiply(Vector4, Single)
Declaration
public static Vector4 operator *(Vector4 left, float scalar)
Parameters
Type |
Name |
Description |
Vector4 |
left |
|
System.Single |
scalar |
|
Returns
Multiply(Single, Vector4)
Declaration
public static Vector4 operator *(float scalar, Vector4 right)
Parameters
Type |
Name |
Description |
System.Single |
scalar |
|
Vector4 |
right |
|
Returns
Subtraction(Vector4, Vector4)
Declaration
public static Vector4 operator -(Vector4 left, Vector4 right)
Parameters
Returns
UnaryNegation(Vector4)
Declaration
public static Vector4 operator -(Vector4 vector)
Parameters
Type |
Name |
Description |
Vector4 |
vector |
|
Returns