jakke-graphics-ts
    Preparing search index...

    Function rotateOnXZ

    • Rotates a 3D vertex around the Y-axis (in the XZ plane) by a given angle in radians.

      Parameters

      • v: Vertex3d

        The vertex to rotate, represented as an object with x, y, and z coordinates.

      • rad: number

        The angle of rotation in radians.

      Returns Vertex3d

      A new Vertex3d object representing the rotated vertex.