modelMatrix

The 4x4 transformation matrix that transforms each point in this collection from model to world coordinates. When this is the identity matrix, the pointPrimitives are drawn in world coordinates, i.e., Earth's WGS84 coordinates. Local reference frames can be used by providing a different transformation matrix, like that returned by Transforms.eastNorthUpToFixedFrame.

const center = Cartesian3.fromDegrees(-75.59777, 40.03883);
pointPrimitives.modelMatrix = Transforms.eastNorthUpToFixedFrame(center);
pointPrimitives.add({
color : Color.ORANGE,
position : new Cartesian3(0.0, 0.0, 0.0) // center
});
pointPrimitives.add({
color : Color.YELLOW,
position : new Cartesian3(1000000.0, 0.0, 0.0) // east
});
pointPrimitives.add({
color : Color.GREEN,
position : new Cartesian3(0.0, 1000000.0, 0.0) // north
});
pointPrimitives.add({
color : Color.CYAN,
position : new Cartesian3(0.0, 0.0, 1000000.0) // up
});

See also