multiplyByPointAsVector

Computes the product of a matrix and a Cartesian3. This is equivalent to calling Matrix4.multiplyByVector with a Cartesian4 with a w component of zero.

const p = new Cartesian3(1.0, 2.0, 3.0);
const result = Matrix4.multiplyByPointAsVector(matrix, p, new Cartesian3());
// A shortcut for
// Cartesian3 p = ...
// Matrix4.multiplyByVector(matrix, new Cartesian4(p.x, p.y, p.z, 0.0), result);

Return

The modified result parameter.

Parameters

matrix

The matrix.

cartesian

The point.

result

The object onto which to store the result.

See also