Vector4¶
struct · namespace Hazel
Constructors¶
Vector4(Vector3, float)¶
Vector4(float)¶
Vector4(float, float, float, float)¶
Fields¶
| Field | Description |
|---|---|
public static Vector4 Infiniity |
|
public static Vector4 Infinity |
|
public static Vector4 One |
|
public float W |
|
public float X |
|
public float Y |
|
public float Z |
|
public static Vector4 Zero |
Properties¶
XYZ¶
Methods¶
Apply(Func)¶
Allows you to pass in a delegate that takes in a double to process the vector per axis, retaining W. i.e. (Mathf.Cos) or a lambda (v => v * 3)
Parameters
| Name | Description |
|---|---|
func |
Delegate 'float' method to act as a scalar to process X, Y and Z, retaining W |
Clamp(Vector4, Vector4)¶
Cos(Vector4)¶
static
Equals(Vector4)¶
Equals(object?)¶
GetHashCode()¶
Length()¶
Lerp(Vector4, Vector4, float)¶
static
New(Func)¶
Allows you to pass in a delegate that takes in and returns a new Vector processed per axis, retaining W. i.e. (float.Cos) or a lambda (v => v * 3)
Parameters
| Name | Description |
|---|---|
func |
Delegate 'double' method to act as a scalar to process X, Y and Z, retaining W |
Normalize()¶
Normalized()¶
Sin(Vector4)¶
static
ToString()¶
Operators¶
operator !=(Vector4, Vector4)¶
static
operator *(Vector4, Vector4)¶
static
operator *(Vector4, float)¶
static
operator *(float, Vector4)¶
static
operator +(Vector4, Vector4)¶
static
operator -(Vector4, Vector4)¶
static
operator /(Vector4, Vector4)¶
static
operator /(Vector4, float)¶
static
operator ==(Vector4, Vector4)¶
static
Source: Hazel/Math/Vector4.cs