Vector3¶
struct · namespace Hazel
Implements IEquatable<Vector3>
Constructors¶
Vector3(Vector2)¶
Vector3(Vector2, float)¶
Vector3(Vector4)¶
Vector3(float)¶
Vector3(float, Vector2)¶
Vector3(float, float, float)¶
Fields¶
| Field | Description |
|---|---|
public static Vector3 Back |
|
public static Vector3 Down |
|
public static Vector3 Forward |
|
public static Vector3 Inifinity |
|
public const float kEpsilonNormalSqrt = 1e-15F |
|
public static Vector3 Left |
|
public static Vector3 One |
|
public static Vector3 Right |
|
public static Vector3 Up |
|
public float X |
|
public float Y |
|
public float Z |
|
public static Vector3 Zero |
Properties¶
sqrMagnitude¶
XY¶
XZ¶
YZ¶
Methods¶
Abs(Vector3)¶
static
Angle(Vector3, Vector3)¶
static
Apply(Func)¶
Allows you to pass in a delegate that takes in a double to process the vector per axis. 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 |
Clamp(Vector3, Vector3)¶
ClampLength(Vector3, float)¶
static
Cos(Vector3)¶
static
Cross(Vector3, Vector3)¶
static
DirectionFromEuler(Vector3)¶
static
Distance(Vector3)¶
Distance(Vector3, Vector3)¶
static
Dot(Vector3, Vector3)¶
static
EpsilonEquals(Vector3, Vector3, float)¶
static
EqualEpsilon(Vector3, float)¶
Equals(Vector3)¶
Equals(object?)¶
GetHashCode()¶
Length()¶
Lerp(Vector3, Vector3, float)¶
static
New(Func)¶
Allows you to pass in a delegate that takes in and returns a new Vector processed per axis. i.e. (float.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 |
Normalize()¶
Normalized()¶
SignedAngle(Vector3, Vector3, Vector3)¶
static
Sin(Vector3)¶
static
ToString()¶
UnwrapEuler(Vector3, Vector3)¶
static
Operators¶
operator !=(Vector3, Vector3)¶
static
operator *(Vector3, Vector3)¶
static
operator *(Vector3, float)¶
static
operator *(float, Vector3)¶
static
operator +(Vector3, Vector3)¶
static
operator +(Vector3, float)¶
static
operator -(Vector3, Vector3)¶
static
operator -(Vector3, float)¶
static
operator -(Vector3)¶
static
operator /(Vector3, Vector3)¶
static
operator /(Vector3, float)¶
static
operator /(float, Vector3)¶
static
operator ==(Vector3, Vector3)¶
static
Source: Hazel/Math/Vector3.cs