math docs
    Preparing search index...

    Function rotateX

    • Rotate a 3D vector around the x-axis

      Parameters

      • out: vec3.Vec3

        The receiving vec3

      • a: readonly [number, number, number]

        The vec3 point to rotate

      • b: readonly [number, number, number]

        The origin of the rotation

      • rad: number

        The angle of rotation in radians

      Returns vec3.Vec3

      out