Table of Contents

Class Fixed3x3UnityExtensions

Namespace
FixedMathSharp

Provides raw basis conversion and explicit rotation-only Unity interop for Fixed3x3.

public static class Fixed3x3UnityExtensions
Inheritance
Fixed3x3UnityExtensions
Inherited Members

Methods

ApplyRotationToTransformLocal(Fixed3x3, Transform)

Applies the matrix's normalized rotation to a Unity transform in local space.

public static void ApplyRotationToTransformLocal(this Fixed3x3 matrix, Transform transform)

Parameters

matrix Fixed3x3
transform Transform

ApplyRotationToTransformWorld(Fixed3x3, Transform)

Applies the matrix's normalized rotation to a Unity transform in world space.

public static void ApplyRotationToTransformWorld(this Fixed3x3 matrix, Transform transform)

Parameters

matrix Fixed3x3
transform Transform

CreateTransformRotationLocal(Fixed3x3, string, Transform)

Creates a Unity transform whose local rotation is extracted from the matrix.

public static Transform CreateTransformRotationLocal(this Fixed3x3 matrix, string name = "Fixed3x3 Rotation Transform", Transform parent = null)

Parameters

matrix Fixed3x3

The rotation matrix to apply.

name string

The new GameObject's name.

parent Transform

The optional parent transform.

Returns

Transform

The created transform.

CreateTransformRotationWorld(Fixed3x3, string, Transform)

Creates a Unity transform whose world rotation is extracted from the matrix.

public static Transform CreateTransformRotationWorld(this Fixed3x3 matrix, string name = "Fixed3x3 Rotation Transform", Transform parent = null)

Parameters

matrix Fixed3x3

The rotation matrix to apply.

name string

The new GameObject's name.

parent Transform

The optional parent transform.

Returns

Transform

The created transform.

ToFixed3x3Basis(Matrix4x4)

Copies the upper-left Unity basis into a FixedMathSharp row-vector matrix without removing scale or shear.

public static Fixed3x3 ToFixed3x3Basis(this Matrix4x4 matrix)

Parameters

matrix Matrix4x4

Returns

Fixed3x3

ToFixed3x3LocalRotation(Transform)

Gets a Unity transform's local rotation as a FixedMathSharp rotation matrix.

public static Fixed3x3 ToFixed3x3LocalRotation(this Transform transform)

Parameters

transform Transform

Returns

Fixed3x3

ToFixed3x3Rotation(Matrix4x4)

Extracts the normalized rotation represented by a Unity matrix.

public static Fixed3x3 ToFixed3x3Rotation(this Matrix4x4 matrix)

Parameters

matrix Matrix4x4

Returns

Fixed3x3

ToFixed3x3WorldRotation(Transform)

Gets a Unity transform's world rotation as a FixedMathSharp rotation matrix.

public static Fixed3x3 ToFixed3x3WorldRotation(this Transform transform)

Parameters

transform Transform

Returns

Fixed3x3

ToMatrix4x4(Fixed3x3)

Converts a FixedMathSharp row-vector basis matrix to a Unity column-vector matrix.

public static Matrix4x4 ToMatrix4x4(this Fixed3x3 matrix)

Parameters

matrix Fixed3x3

Returns

Matrix4x4