Scripting API

float4x4

struct in Unity.Mathematics · Unity.Mathematics

46 of 46 of Unity's members

Constructors 1

float4x4(float4 c0, float4 c1, float4 c2, float4 c3)
float4x4(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
float4x4(float v)
float4x4(bool v)
float4x4(bool4x4 v)
float4x4(int v)
float4x4(int4x4 v)
float4x4(uint v)
float4x4(uint4x4 v)
float4x4(double v)
float4x4(double4x4 v)
float4x4(float3x3 rotation, float3 translation)
float4x4(quaternion rotation, float3 translation)
float4x4(RigidTransform transform)

Fields 6

float4 c0
float4 c1
float4 c2
float4 c3
static readonly float4x4 identity
static readonly float4x4 zero

Properties 1

ref float4 this[int index] { get; }

Methods 22

static float4x4 AxisAngle(float3 axis, float angle)
readonly bool Equals(float4x4 rhs)
readonly bool Equals(object? o)
static float4x4 Euler(float3 xyz, RotationOrder order = RotationOrder.Default)
static float4x4 Euler(float x, float y, float z, RotationOrder order = RotationOrder.Default)
static float4x4 EulerXYZ(float3 xyz)
static float4x4 EulerXYZ(float x, float y, float z)
static float4x4 EulerXZY(float3 xyz)
static float4x4 EulerXZY(float x, float y, float z)
static float4x4 EulerYXZ(float3 xyz)
static float4x4 EulerYXZ(float x, float y, float z)
static float4x4 EulerYZX(float3 xyz)
static float4x4 EulerYZX(float x, float y, float z)
static float4x4 EulerZXY(float3 xyz)
static float4x4 EulerZXY(float x, float y, float z)
static float4x4 EulerZYX(float3 xyz)
static float4x4 EulerZYX(float x, float y, float z)
readonly int GetHashCode()
static float4x4 LookAt(float3 eye, float3 target, float3 up)

The transform at eye facing target (a view's inverse, z forward).

static float4x4 Ortho(float width, float height, float near, float far)
static float4x4 OrthoOffCenter(float left, float right, float bottom, float top, float near, float far)
static float4x4 PerspectiveFov(float verticalFov, float aspect, float near, float far)
static float4x4 PerspectiveOffCenter(float left, float right, float bottom, float top, float near, float far)
static float4x4 RotateX(float angle)
static float4x4 RotateY(float angle)
static float4x4 RotateZ(float angle)
static float4x4 Scale(float s)
static float4x4 Scale(float x, float y, float z)
static float4x4 Scale(float3 scales)
static float4x4 TRS(float3 translation, quaternion rotation, float3 scale)
readonly string ToString()
readonly string ToString(string? format, IFormatProvider? formatProvider)
static float4x4 Translate(float3 vector)

Operators 15

static explicit operator float4x4(bool v)
static explicit operator float4x4(bool4x4 v)
static explicit operator float4x4(double v)
static explicit operator float4x4(double4x4 v)
static implicit operator float4x4(float v)
static implicit operator float4x4(int v)
static implicit operator float4x4(int4x4 v)
static implicit operator float4x4(uint v)
static implicit operator float4x4(uint4x4 v)
static implicit operator float4x4(Matrix4x4 m)
static implicit operator Matrix4x4(float4x4 m)
static bool4x4 operator !=(float4x4 lhs, float4x4 rhs)
static bool4x4 operator !=(float4x4 lhs, float rhs)
static bool4x4 operator !=(float lhs, float4x4 rhs)
static float4x4 operator %(float4x4 lhs, float4x4 rhs)
static float4x4 operator %(float4x4 lhs, float rhs)
static float4x4 operator %(float lhs, float4x4 rhs)
static float4x4 operator *(float4x4 lhs, float4x4 rhs)
static float4x4 operator *(float4x4 lhs, float rhs)
static float4x4 operator *(float lhs, float4x4 rhs)
static float4x4 operator +(float4x4 lhs, float4x4 rhs)
static float4x4 operator +(float4x4 lhs, float rhs)
static float4x4 operator +(float lhs, float4x4 rhs)
static float4x4 operator +(float4x4 val)
static float4x4 operator ++(float4x4 val)
static float4x4 operator -(float4x4 lhs, float4x4 rhs)
static float4x4 operator -(float4x4 lhs, float rhs)
static float4x4 operator -(float lhs, float4x4 rhs)
static float4x4 operator -(float4x4 val)
static float4x4 operator --(float4x4 val)
static float4x4 operator /(float4x4 lhs, float4x4 rhs)
static float4x4 operator /(float4x4 lhs, float rhs)
static float4x4 operator /(float lhs, float4x4 rhs)
static bool4x4 operator <(float4x4 lhs, float4x4 rhs)
static bool4x4 operator <(float4x4 lhs, float rhs)
static bool4x4 operator <(float lhs, float4x4 rhs)
static bool4x4 operator <=(float4x4 lhs, float4x4 rhs)
static bool4x4 operator <=(float4x4 lhs, float rhs)
static bool4x4 operator <=(float lhs, float4x4 rhs)
static bool4x4 operator ==(float4x4 lhs, float4x4 rhs)
static bool4x4 operator ==(float4x4 lhs, float rhs)
static bool4x4 operator ==(float lhs, float4x4 rhs)
static bool4x4 operator >(float4x4 lhs, float4x4 rhs)
static bool4x4 operator >(float4x4 lhs, float rhs)
static bool4x4 operator >(float lhs, float4x4 rhs)
static bool4x4 operator >=(float4x4 lhs, float4x4 rhs)
static bool4x4 operator >=(float4x4 lhs, float rhs)
static bool4x4 operator >=(float lhs, float4x4 rhs)