Scripting API

float3x3

struct in Unity.Mathematics · Unity.Mathematics

40 of 40 of Unity's members

Constructors 1

float3x3(float3 c0, float3 c1, float3 c2)
float3x3(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)
float3x3(float v)
float3x3(bool v)
float3x3(bool3x3 v)
float3x3(int v)
float3x3(int3x3 v)
float3x3(uint v)
float3x3(uint3x3 v)
float3x3(double v)
float3x3(double3x3 v)
float3x3(float4x4 f4x4)
float3x3(quaternion q)

The rotation matrix of a unit quaternion.

Fields 5

float3 c0
float3 c1
float3 c2
static readonly float3x3 identity
static readonly float3x3 zero

Properties 1

ref float3 this[int index] { get; }

Methods 17

static float3x3 AxisAngle(float3 axis, float angle)

A rotation of angle radians about a unit axis (Rodrigues' formula).

readonly bool Equals(float3x3 rhs)
readonly bool Equals(object? o)
static float3x3 Euler(float3 xyz, RotationOrder order = RotationOrder.Default)
static float3x3 Euler(float x, float y, float z, RotationOrder order = RotationOrder.Default)
static float3x3 EulerXYZ(float3 xyz)
static float3x3 EulerXYZ(float x, float y, float z)
static float3x3 EulerXZY(float3 xyz)
static float3x3 EulerXZY(float x, float y, float z)
static float3x3 EulerYXZ(float3 xyz)
static float3x3 EulerYXZ(float x, float y, float z)
static float3x3 EulerYZX(float3 xyz)
static float3x3 EulerYZX(float x, float y, float z)
static float3x3 EulerZXY(float3 xyz)
static float3x3 EulerZXY(float x, float y, float z)
static float3x3 EulerZYX(float3 xyz)
static float3x3 EulerZYX(float x, float y, float z)
readonly int GetHashCode()
static float3x3 LookRotation(float3 forward, float3 up)

The rotation facing a unit forward with up as near up as it can be (both must be valid).

static float3x3 LookRotationSafe(float3 forward, float3 up)

As LookRotation, normalizing its inputs, and the identity when they're degenerate.

static float3x3 RotateX(float angle)
static float3x3 RotateY(float angle)
static float3x3 RotateZ(float angle)
static float3x3 Scale(float s)
static float3x3 Scale(float x, float y, float z)
static float3x3 Scale(float3 v)
readonly string ToString()
readonly string ToString(string? format, IFormatProvider? formatProvider)

Operators 15

static explicit operator float3x3(bool v)
static explicit operator float3x3(bool3x3 v)
static explicit operator float3x3(double v)
static explicit operator float3x3(double3x3 v)
static explicit operator float3x3(float4x4 f4x4)
static implicit operator float3x3(float v)
static implicit operator float3x3(int v)
static implicit operator float3x3(int3x3 v)
static implicit operator float3x3(uint v)
static implicit operator float3x3(uint3x3 v)
static bool3x3 operator !=(float3x3 lhs, float3x3 rhs)
static bool3x3 operator !=(float3x3 lhs, float rhs)
static bool3x3 operator !=(float lhs, float3x3 rhs)
static float3x3 operator %(float3x3 lhs, float3x3 rhs)
static float3x3 operator %(float3x3 lhs, float rhs)
static float3x3 operator %(float lhs, float3x3 rhs)
static float3x3 operator *(float3x3 lhs, float3x3 rhs)
static float3x3 operator *(float3x3 lhs, float rhs)
static float3x3 operator *(float lhs, float3x3 rhs)
static float3x3 operator +(float3x3 lhs, float3x3 rhs)
static float3x3 operator +(float3x3 lhs, float rhs)
static float3x3 operator +(float lhs, float3x3 rhs)
static float3x3 operator +(float3x3 val)
static float3x3 operator ++(float3x3 val)
static float3x3 operator -(float3x3 lhs, float3x3 rhs)
static float3x3 operator -(float3x3 lhs, float rhs)
static float3x3 operator -(float lhs, float3x3 rhs)
static float3x3 operator -(float3x3 val)
static float3x3 operator --(float3x3 val)
static float3x3 operator /(float3x3 lhs, float3x3 rhs)
static float3x3 operator /(float3x3 lhs, float rhs)
static float3x3 operator /(float lhs, float3x3 rhs)
static bool3x3 operator <(float3x3 lhs, float3x3 rhs)
static bool3x3 operator <(float3x3 lhs, float rhs)
static bool3x3 operator <(float lhs, float3x3 rhs)
static bool3x3 operator <=(float3x3 lhs, float3x3 rhs)
static bool3x3 operator <=(float3x3 lhs, float rhs)
static bool3x3 operator <=(float lhs, float3x3 rhs)
static bool3x3 operator ==(float3x3 lhs, float3x3 rhs)
static bool3x3 operator ==(float3x3 lhs, float rhs)
static bool3x3 operator ==(float lhs, float3x3 rhs)
static bool3x3 operator >(float3x3 lhs, float3x3 rhs)
static bool3x3 operator >(float3x3 lhs, float rhs)
static bool3x3 operator >(float lhs, float3x3 rhs)
static bool3x3 operator >=(float3x3 lhs, float3x3 rhs)
static bool3x3 operator >=(float3x3 lhs, float rhs)
static bool3x3 operator >=(float lhs, float3x3 rhs)