Source Academy Modules
    Preparing search index...

    Function translate

    • This function returns a Curve transformation: It takes an x-value x0, a y-value y0 and a z-value z0, as arguments and returns a Curve transformation that takes a Curve as argument and returns a new Curve, by translating the original by x0 in x-direction, y0 in y-direction and z0 in z-direction.

      Parameters

      • x0: number

        x-value

      • y0: number

        y-value

      • z0: number

        z-value

      Returns CurveTransformer

      Curve transformation