class Affine3D: AbstractAffine

Affine transformation matrix and operations in 3D.

Constructors

<init>

constructor(_matrix: JOMLMatrix4dc)

Affine transformation matrix and operations in 3D.

Parameters

Name Description
_matrix: JOMLMatrix4dc

internal matrix of adapting library

Methods

transform

fun transform(point: Vector3D): _matrix.transformPosition(point.toVector3DJOML()).toVector3D()

Parameters

Name Description
point: Vector3D

ReturnValue

Name Description
_matrix.transformPosition(point.toVector3DJOML()).toVector3D()

transform

fun transform(points: List<Vector3D>): List<Vector3D>

Parameters

Name Description
points: List<Vector3D>

ReturnValue

Name Description
List<Vector3D>

transform

fun transform(polygon: Polygon3D): Polygon3D

Parameters

Name Description
polygon: Polygon3D

ReturnValue

Name Description
Polygon3D

transform

fun transform(polygons: List<Polygon3D>): (polygons: List)

Parameters

Name Description
polygons: List<Polygon3D>

ReturnValue

Name Description
(polygons: List)

inverseTransform

fun inverseTransform(point: Vector3D): _matrixInverse.transformPosition(point.toVector3DJOML()).toVector3D()

Parameters

Name Description
point: Vector3D

ReturnValue

Name Description
_matrixInverse.transformPosition(point.toVector3DJOML()).toVector3D()

inverseTransform

fun inverseTransform(points: List<Vector3D>): (points: List)

Parameters

Name Description
points: List<Vector3D>

ReturnValue

Name Description
(points: List)

inverseTransform

fun inverseTransform(polygon: Polygon3D): Polygon3D

Parameters

Name Description
polygon: Polygon3D

ReturnValue

Name Description
Polygon3D

inverseTransform

fun inverseTransform(polygons: List<Polygon3D>): (polygons: List)

Parameters

Name Description
polygons: List<Polygon3D>

ReturnValue

Name Description
(polygons: List)

extractTranslation

fun extractTranslation(): ()

Extracts the translation vector of the Affine3D transformation matrix.

ReturnValue

Name Description
()

translation vector

extractScaling

fun extractScaling(): RealVector

Extracts the scale vector of the Affine3D transformation matrix. See the wikipedia article of scaling (geometry).

ReturnValue

Name Description
RealVector

scaling vector

extractRotationAffine

fun extractRotationAffine(): Affine3D

Extracts the rotation of the Affine3D transformation matrix.

ReturnValue

Name Description
Affine3D

rotation

append

fun append(other: Affine3D): Affine3D

Appends another transformation matrix.

Parameters

Name Description
other: Affine3D

transformation matrix for appending

ReturnValue

Name Description
Affine3D

new Affine3D transformation matrix

equals

fun equals(other: Any?): Boolean

Parameters

Name Description
other: Any?

ReturnValue

Name Description
Boolean

hashCode

fun hashCode(): Int

ReturnValue

Name Description
Int

toMatrix4JOML

fun toMatrix4JOML(): JOMLMatrix4d(this._matrix)

ReturnValue

Name Description
JOMLMatrix4d(this._matrix)

toRealMatrix

fun toRealMatrix(): this._matrixTransposed.toRealMatrix()

ReturnValue

Name Description
this._matrixTransposed.toRealMatrix()

toDoubleArray

fun toDoubleArray(): DoubleArray

ReturnValue

Name Description
DoubleArray

toString

fun toString(): String

ReturnValue

Name Description
String

CompanionObject

Affine3D

class Affine3D: AbstractAffine

Affine transformation matrix and operations in 3D.

Fields

Name Description
val UNIT: Affine3D

Methods

of

fun of(matrix: RealMatrix): Affine3D

Creates an Affine3D transformation matrix from a 4x4 RealMatrix.

Parameters

Name Description
matrix: RealMatrix

ReturnValue

Name Description
Affine3D

of

fun of(translation: Vector3D): Affine3D

Creates an Affine3D transformation matrix from a translation vector.

Parameters

Name Description
translation: Vector3D

ReturnValue

Name Description
Affine3D

of

fun of(scaling: RealVector): Affine3D

Creates an Affine3D transformation matrix from a scaling vector.

Parameters

Name Description
scaling: RealVector

ReturnValue

Name Description
Affine3D

of

fun of(rotation: Rotation3D): Affine3D

Creates an Affine3D transformation matrix from a rotation.

Parameters

Name Description
rotation: Rotation3D

ReturnValue

Name Description
Affine3D

of

fun of(affineList: List<Affine3D>): Affine3D

Creates an Affine3D transformation matrix from a list of sequentially applied affine transformation matrices.

Parameters

Name Description
affineList: List<Affine3D>

ReturnValue

Name Description
Affine3D

of

fun of(vararg affines: Affine3D): (vararg affines: Affine3D)

Creates an Affine3D transformation matrix from a list of sequentially applied affine transformation matrices.

Parameters

Name Description
vararg affines: Affine3D

ReturnValue

Name Description
(vararg affines: Affine3D)

of

fun of(pose: Pose3D): Affine3D

Creates an Affine3D transformation matrix from a pose.

Parameters

Name Description
pose: Pose3D

ReturnValue

Name Description
Affine3D

of

fun of(basisX: Vector3D, basisY: Vector3D, basisZ: Vector3D): Affine3D

Creates an Affine3D transformation matrix by means of a new coordinate system basis.

Parameters

Name Description
basisX: Vector3D

x axis of new basis

basisY: Vector3D

y axis of new basis

basisZ: Vector3D

z axis of new basis

ReturnValue

Name Description
Affine3D