jakke-graphics-ts
    Preparing search index...

    Function rotateOnYZ

    • Rotates a 3D vertex around the YZ plane by a given angle in radians.

      The rotation is performed with respect to the origin (0, 0, 0), affecting the y and z coordinates while leaving x unchanged.

      Parameters

      • v: Vertex3d

        The 3D vertex to rotate, represented as a Vertex3d object.

      • rad: number

        The angle of rotation in radians.

      Returns Vertex3d

      A new Vertex3d object representing the rotated vertex.