Blockbench Reference Docs
    Preparing search index...
    Index

    Constructors

    • Parameters

      • spline: any
      • data: any

      Returns SplineCurve

    Properties

    end: string
    end_ctrl: string
    end_handle: string
    spline: any
    start: string
    start_ctrl: string
    start_handle: string

    Accessors

    • get element(): any

      Returns any

    Methods

    • Parameters

      • data: any

      Returns this

    • Returns string

    • Returns {
          end: string;
          end_ctrl: string;
          end_handle: string;
          start: string;
          start_ctrl: string;
          start_handle: string;
      }

    • Returns any

    • Returns any

    • Splits a curve in two distinct paths using De Casteljau's algorithm. The split happens at the corresponding T (time) on the initial curve.

      Parameters

      • time: float

        Point at which the split occurs (in % from 0 to 1)

      Returns any[]

      Adjusted and new points for our two new curves, as two Objects, one per curve.