fromRotationX
Creates a rotation matrix around the x-axis.
// Rotate a point 45 degrees counterclockwise around the x-axis.
const p = new Cartesian3(5, 6, 7);
const m = Matrix3.fromRotationX(Math.toRadians(45.0));
const rotated = Matrix3.multiplyByVector(m, p, new Cartesian3());
Content copied to clipboard
Return
The modified result parameter, or a new Matrix3 instance if one was not provided.
Parameters
angle
The angle, in radians, of the rotation. Positive angles are counterclockwise.
result
The object in which the result will be stored, if undefined a new instance will be created.