Divooka Reference

Transform

42 nodes

On this page 42

M00

Function

Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).

Signature
M00(Transform: Transform) -> Number
double M00(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

M01

Function

Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).

Signature
M01(Transform: Transform) -> Number
double M01(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

M02

Function

Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).

Signature
M02(Transform: Transform) -> Number
double M02(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

M03

Function

Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).

Signature
M03(Transform: Transform) -> Number
double M03(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

M10

Function

Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).

Signature
M10(Transform: Transform) -> Number
double M10(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

M11

Function

Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).

Signature
M11(Transform: Transform) -> Number
double M11(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

M12

Function

Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).

Signature
M12(Transform: Transform) -> Number
double M12(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

M13

Function

Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).

Signature
M13(Transform: Transform) -> Number
double M13(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

M20

Function

Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).

Signature
M20(Transform: Transform) -> Number
double M20(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

M21

Function

Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).

Signature
M21(Transform: Transform) -> Number
double M21(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

M22

Function

Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).

Signature
M22(Transform: Transform) -> Number
double M22(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

M23

Function

Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).

Signature
M23(Transform: Transform) -> Number
double M23(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

M30

Function

Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).

Signature
M30(Transform: Transform) -> Number
double M30(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

M31

Function

Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).

Signature
M31(Transform: Transform) -> Number
double M31(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

M32

Function

Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).

Signature
M32(Transform: Transform) -> Number
double M32(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

M33

Function

Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).

Signature
M33(Transform: Transform) -> Number
double M33(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Make Transform

Function

Creates a transform from its 16 entries in row-major order.

Signature
Transform -> Transform
    m00: Number
    m01: Number
    m02: Number
    m03: Number
    m10: Number
    m11: Number
    m12: Number
    m13: Number
    m20: Number
    m21: Number
    m22: Number
    m23: Number
    m30: Number
    m31: Number
    m32: Number
    m33: Number
Transform Transform(
    double m00,
    double m01,
    double m02,
    double m03,
    double m10,
    double m11,
    double m12,
    double m13,
    double m20,
    double m21,
    double m22,
    double m23,
    double m30,
    double m31,
    double m32,
    double m33)

Parameters

nametypedefaultdescription
m00Number—Row 0, column 0.
m01Number—Row 0, column 1.
m02Number—Row 0, column 2.
m03Number—Row 0, column 3 (X translation).
m10Number—Row 1, column 0.
m11Number—Row 1, column 1.
m12Number—Row 1, column 2.
m13Number—Row 1, column 3 (Y translation).
m20Number—Row 2, column 0.
m21Number—Row 2, column 1.
m22Number—Row 2, column 2.
m23Number—Row 2, column 3 (Z translation).
m30Number—Row 3, column 0.
m31Number—Row 3, column 1.
m32Number—Row 3, column 2.
m33Number—Row 3, column 3 (1 for affine transforms).

Returns

resultTransform
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Epsilon Equals

Function

True when every entry differs by at most Tol.

Signature
EpsilonEquals -> Truth
    Transform: Transform
    o: Transform
    tol: Number
bool EpsilonEquals(
    Transform Transform,
    in Transform o,
    double tol)

Parameters

nametypedefaultdescription
TransformTransform—
oTransform—Another transform.
tolNumber—Absolute tolerance.

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Transform
Package
CAD

Equals

Function

Overload 1 of 2

Signature
Equals(Transform: Transform, o: Transform) -> Truth
bool Equals(Transform Transform, Transform o)

Exact equality of all entries.

Parameters

nametypedefaultdescription
TransformTransform—
oTransform—Another transform.

Returns

resultTruth

Overload 2 of 2

Signature
Equals(Transform: Transform, obj: Any) -> Truth
bool Equals(Transform Transform, object obj)

This node carries no documentation.

Parameters

nametypedefaultdescription
TransformTransform—
objAny—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Transform
Package
CAD

Determinant

Function

Determinant of the 4×4 matrix (for affine transforms the determinant of the 3×3 linear part; negative for mirrors).

Signature
Determinant(Transform: Transform) -> Number
double Determinant(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Is Affine

Function

True when the last row is (0, 0, 0, 1), i.e. there is no projective part.

Signature
IsAffine(Transform: Transform) -> Truth
bool IsAffine(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Is Identity

Function

True when the transform is exactly the identity.

Signature
IsIdentity(Transform: Transform) -> Truth
bool IsIdentity(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Item

Function

Entry at row R, column C.

Signature
Item(Transform: Transform, r: Integer, c: Integer) -> Number
double Item(Transform Transform, int r, int c)

Parameters

nametypedefaultdescription
TransformTransform—
rInteger—Row 0–3.
cInteger—Column 0–3.

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Get Hash Code

Function

This node carries no documentation.

Signature
GetHashCode(Transform: Transform) -> Integer
int GetHashCode(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Transform
Package
CAD

Inverse

Function

The inverse transform.

Signature
Inverse(Transform: Transform) -> Transform
Transform Inverse(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultTransform
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Transform
Package
CAD

To Array

Function

Copies the entries into a new 4×4 array indexed [row, column].

Signature
ToArray(Transform: Transform) -> Double[,]
double[,] ToArray(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultDouble[,]
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Transform
Package
CAD

To String

Function

Returns the four rows, e.g. "[1, 0, 0, 5; 0, 1, 0, 0; 0, 0, 1, 0; 0, 0, 0, 1]" (invariant culture).

Signature
ToString(Transform: Transform) -> Text
string ToString(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Transform
Package
CAD

Transpose

Function

The transposed matrix.

Signature
Transpose(Transform: Transform) -> Transform
Transform Transpose(Transform Transform)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultTransform
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Transform
Package
CAD

Try Get Inverse

Function

General 4x4 inverse. Returns false when singular.

Signature
TryGetInverse(Transform: Transform) -> (result: Truth, inverse: Transform)
bool TryGetInverse(Transform Transform, out Transform inverse)

Parameters

nametypedefaultdescription
TransformTransform—

Returns

resultTruth
inverseTransform
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Transform
Package
CAD

Change Basis

Function

Change of coordinates: returns the transform taking coordinates in Source's frame to coordinates in Target's frame.

Signature
ChangeBasis(source: Plane, target: Plane) -> Transform
Transform ChangeBasis(Plane source, Plane target)

Parameters

nametypedefaultdescription
sourcePlane—
targetPlane—

Returns

resultTransform
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

From Array

Function

Creates a transform from a 4×4 array indexed [row, column].

Signature
FromArray(m: Double[,]) -> Transform
Transform FromArray(double[,] m)

Parameters

nametypedefaultdescription
mDouble[,]—The matrix.

Returns

resultTransform
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Identity

Function

The identity transform.

Signature
Identity() -> Transform
Transform Identity()

Returns

resultTransform
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Mirror

Function

Reflection through a plane.

Signature
Mirror(plane: Plane) -> Transform
Transform Mirror(Plane plane)

Parameters

nametypedefaultdescription
planePlane—

Returns

resultTransform
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Equality Operation

Function

Exact equality of all entries.

Signature
op_Equality(a: Transform, b: Transform) -> Truth
bool op_Equality(in Transform a, in Transform b)

Parameters

nametypedefaultdescription
aTransform—First transform.
bTransform—Second transform.

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Inequality Operation

Function

Inequality of some entry.

Signature
op_Inequality(a: Transform, b: Transform) -> Truth
bool op_Inequality(in Transform a, in Transform b)

Parameters

nametypedefaultdescription
aTransform—First transform.
bTransform—Second transform.

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Multiply Operation

Function

Overload 1 of 4

Signature
op_Multiply(a: Transform, b: Transform) -> Transform
Transform op_Multiply(in Transform a, in Transform b)

Composition a·b: applying the result equals applying B first, then A.

Parameters

nametypedefaultdescription
aTransform—The transform applied second.
bTransform—The transform applied first.

Returns

resultTransform

Overload 2 of 4

Signature
op_Multiply(m: Transform, p: Point3d) -> Point3d
Point3d op_Multiply(in Transform m, in Point3d p)

Transforms a point (with the homogeneous division for projective transforms).

Parameters

nametypedefaultdescription
mTransform—The transform.
pPoint3d—The point.

Returns

resultPoint3d

Overload 3 of 4

Signature
op_Multiply(m: Transform, v: Vector3d) -> Vector3d
Vector3d op_Multiply(in Transform m, in Vector3d v)

Transforms a direction (ignores translation and projective terms).

Parameters

nametypedefaultdescription
mTransform—
vVector3d—

Returns

resultVector3d

Overload 4 of 4

Signature
op_Multiply(m: Transform, p: Point4d) -> Point4d
Point4d op_Multiply(in Transform m, in Point4d p)

Transforms a homogeneous point (exact for projective maps of rational geometry).

Parameters

nametypedefaultdescription
mTransform—
pPoint4d—

Returns

resultPoint4d
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Planar Projection

Function

Projection onto a plane along its normal.

Signature
PlanarProjection(plane: Plane) -> Transform
Transform PlanarProjection(Plane plane)

Parameters

nametypedefaultdescription
planePlane—

Returns

resultTransform
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Plane To Plane

Function

Maps geometry expressed relative to From to the same relative placement on To.

Signature
PlaneToPlane(from: Plane, to: Plane) -> Transform
Transform PlaneToPlane(Plane from, Plane to)

Parameters

nametypedefaultdescription
fromPlane—
toPlane—

Returns

resultTransform
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Rotation

Function

Overload 1 of 2

Signature
Rotation -> Transform
    angle: Number
    axis: Vector3d
    center: Point3d
Transform Rotation(double angle, Vector3d axis, Point3d center)

Rotation by Angle radians about an axis through Center.

Parameters

nametypedefaultdescription
angleNumber—
axisVector3d—
centerPoint3d—

Returns

resultTransform

Overload 2 of 2

Signature
Rotation -> Transform
    from: Vector3d
    to: Vector3d
    center: Point3d
Transform Rotation(Vector3d from, Vector3d to, Point3d center)

Minimal rotation taking direction From to direction To.

Parameters

nametypedefaultdescription
fromVector3d—
toVector3d—
centerPoint3d—

Returns

resultTransform
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Scale

Function

Overload 1 of 4

Signature
Scale(factor: Number) -> Transform
Transform Scale(double factor)

Uniform scale about the world origin.

Parameters

nametypedefaultdescription
factorNumber—Scale factor.

Returns

resultTransform

Overload 2 of 4

Signature
Scale(center: Point3d, factor: Number) -> Transform
Transform Scale(Point3d center, double factor)

Uniform scale about Center.

Parameters

nametypedefaultdescription
centerPoint3d—Fixed point.
factorNumber—Scale factor.

Returns

resultTransform

Overload 3 of 4

Signature
Scale -> Transform
    c: Point3d
    sx: Number
    sy: Number
    sz: Number
Transform Scale(Point3d c, double sx, double sy, double sz)

Non-uniform scale along the world axes about a fixed point.

Parameters

nametypedefaultdescription
cPoint3d—Fixed point.
sxNumber—Factor along X.
syNumber—Factor along Y.
szNumber—Factor along Z.

Returns

resultTransform

Overload 4 of 4

Signature
Scale -> Transform
    plane: Plane
    sx: Number
    sy: Number
    sz: Number
Transform Scale(Plane plane, double sx, double sy, double sz)

Non-uniform scale along the axes of a plane.

Parameters

nametypedefaultdescription
planePlane—
sxNumber—
syNumber—
szNumber—

Returns

resultTransform
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Shear

Function

Shear: p' = p + (dot(p - plane.Origin, plane.ZAxis)) * shear.

Signature
Shear(plane: Plane, shear: Vector3d) -> Transform
Transform Shear(Plane plane, Vector3d shear)

Parameters

nametypedefaultdescription
planePlane—
shearVector3d—

Returns

resultTransform
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD

Translation

Function

Overload 1 of 2

Signature
Translation(v: Vector3d) -> Transform
Transform Translation(Vector3d v)

Translation by a vector.

Parameters

nametypedefaultdescription
vVector3d—The displacement.

Returns

resultTransform

Overload 2 of 2

Signature
Translation(x: Number, y: Number, z: Number) -> Transform
Transform Translation(double x, double y, double z)

Translation by (x, y, z).

Parameters

nametypedefaultdescription
xNumber—X displacement.
yNumber—Y displacement.
zNumber—Z displacement.

Returns

resultTransform
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Transform
Package
CAD