jakke-graphics-ts
    Preparing search index...

    Function scale

    • Scales a 3D vertex by a given scalar value.

      Parameters

      • v: Vertex3d

        The vertex to scale, represented as a Vertex3d object.

      • scalar: number

        The scalar value to multiply each component of the vertex by.

      Returns Vertex3d

      A new Vertex3d object with each component scaled by the given scalar.