multiplyByPoint

fun multiplyByPoint(matrix: Matrix4, cartesian: Cartesian3, result: Cartesian3): Cartesian3(source)

Computes the product of a matrix and a Cartesian3. This is equivalent to calling Matrix4.multiplyByVector with a Cartesian4 with a w component of 1, but returns a Cartesian3 instead of a Cartesian4.

const p = new Cartesian3(1.0, 2.0, 3.0);
const result = Matrix4.multiplyByPoint(matrix, p, new Cartesian3());

Return

The modified result parameter.

Parameters

matrix

The matrix.

cartesian

The point.

result

The object onto which to store the result.

See also