Table of Contents

Class Transform

Namespace
Pamoja.Kit
Assembly
Pamoja.Kit.dll

A 4x4 homogeneous transform: a rotation and a translation.

public sealed class Transform : IEquatable<Transform>
Inheritance
Transform
Implements
Inherited Members

Properties

Elements

Gets the sixteen elements, row-major.

public IReadOnlyList<float> Elements { get; }

Property Value

IReadOnlyList<float>

Identity

Gets the identity: no rotation and no translation.

public static Transform Identity { get; }

Property Value

Transform

Position

Gets where this transform places the origin: its translation.

public (float X, float Y, float Z) Position { get; }

Property Value

(float X, float Y, float Z)

Methods

Equals(Transform?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Transform? other)

Parameters

other Transform

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Multiply(Transform)

Returns this * other, the transform that applies other and then this one.

public Transform Multiply(Transform other)

Parameters

other Transform

The transform further down the chain.

Returns

Transform

The product.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.