Source Academy Modules
    Preparing search index...

    Variable translateConst

    translate: (x0: number, y0: number, z0: number) => CurveTransformer = CurveFunctions.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.

    Type Declaration

      • (x0: number, y0: number, z0: number): CurveTransformer
      • Parameters

        • x0: number

          x-value

        • y0: number

          y-value

        • z0: number

          z-value

        Returns CurveTransformer

        Curve transformation