jakke-graphics-ts
    Preparing search index...

    Function rotateOnXY

    • Rotates a 3D vertex around the Z-axis by a given angle in radians.

      The rotation is performed in the XY plane, leaving the Z coordinate unchanged.

      Parameters

      • v: Vertex3d

        The 3D vertex to rotate, with x, y, and z properties.

      • rad: number

        The angle in radians to rotate the vertex.

      Returns Vertex3d

      A new Vertex3d object representing the rotated vertex.