rotateX method
- double angle
Rotation of the coordinate frame by angle (radians) about the x
axis – the R₁ matrix of the IERS Conventions (2010), chapter 5.
Implementation
Vector3 rotateX(double angle) {
final c = math.cos(angle), s = math.sin(angle);
return Vector3(x, c * y + s * z, -s * y + c * z);
}