# Matrix.R

Quat rotation | A Quaternion describing the rotation for this transform. |

RETURNS: Matrix | A Matrix that will rotate by the provided Quaternion orientation. |

Create a rotation matrix from a Quaternion.

static Matrix R(float pitchXDeg, float yawYDeg, float rollZDeg)

float pitchXDeg | Pitch, or rotation around the X axis, in degrees. |

float yawYDeg | Yaw, or rotation around the Y axis, in degrees. |

float rollZDeg | Roll, or rotation around the Z axis, in degrees. |

RETURNS: Matrix | A Matrix that will rotate by the provided pitch, yaw and roll. |

Create a rotation matrix from pitch, yaw, and roll information. Units are in degrees.

Vec3 pitchYawRollDeg | Pitch (x-axis), yaw (y-axis), and roll (z-axis) stored as x, y and z respectively in this Vec3. Units are in degrees. |

RETURNS: Matrix | A Matrix that will rotate by the provided pitch, yaw and roll. |

Create a rotation matrix from pitch, yaw, and roll information. Units are in degrees.

Found an issue with these docs, or have some additional questions? Create an Issue on Github!