Skip to content

Classes Reference

SdtElectronic edited this page Jun 15, 2019 · 1 revision

Classes

geomBase

Caution: This is an abstract class and should never be instantiated.

Methods

  • Purge

    geomBase.purge()
Remove all the geometrices in the scene

Properties

  • geomBase.geomLst: [geometrices: geomBase]

    An Array of all the references of the geometrices created

hyperCube extends geomBase

Methods

  • Constructor

    hyperCube(dimension: Number, dimensions: [length: Number], offset?: [diatance: Number], rotation?: [[axisIndex0, axisIndex1, angle]], spin:? [[axisIndex0, axisIndex1]], projType?: boolean): hyperCube
  • dimension:

    Dimension of the hypercube, n ∈ [4, +∞]

  • dimensions:

    Array of dimensions of the hypercube

  • offset:

    Array of offset diatances related to the origin

  • rotation:

    Array of arrays determine the initial orientation of the cube. Subarray[0], Subarray[1] are the axises determine the rotation surface, Subarray[2] is the rotation angle.

  • spin:

    Array of arrays determine the spin animation. Subarray[0], Subarray[1] are the axises determine the rotation surface.

  • projType:

    If set true, apply ,otherwise apply parallel projection

  • Update

    this.update(rotation?: [angel: Number],offset?: [diatance: Number], dimensions?: [length: Number]): void
Repaint the hypercube according to the parameter
rotation: Array of rotation angels in radian
Other parameters definition same to the constructor
  • Destructor

    this.destructor(): void
Remove this hypercube from scene and free the memory.

Properties

  • this.projType: Boolean

    If set true, apply ,otherwise apply parallel projection

simplex4 extends geomBase

  • Constructor

    simplex(dimensions: [length: Number], offset?: [diatance: Number], rotation?: [[axisIndex0, axisIndex1, angle]], spin:? [[axisIndex0, axisIndex1]], projType?: boolean): simplex
  • dimensions:

    Array of dimensions of the simplex

  • offset:

    Array of offset diatances related to the origin

  • rotation:

    Array of arrays determine the initial orientation of the cube. Subarray[0], Subarray[1] are the axises determine the rotation surface, Subarray[2] is the rotation angle.

  • spin:

    Array of arrays determine the spin animation. Subarray[0], Subarray[1] are the axises determine the rotation surface.

  • projType:

    If set true, apply ,otherwise apply parallel projection

  • Update

    this.update(rotation?: [angel: Number],offset?: [diatance: Number], dimensions?: [length: Number]): void
Repaint the simplex according to the parameter
rotation: Array of rotation angels in radian
Other parameters definition same to the constructor
  • Destructor

    this.destructor(): void
Remove this simplex from scene and free the memory.

Properties

  • this.projType: Boolean

    If set true, apply ,otherwise apply parallel projection

hilbertCurve extends geomBase

Methods

  • Constructor

    hilbertCurve(dimension: Number, orders: Number, unitLength?: Number, projType?: Boolean): hilbertCurve
  • dimension:

    Dimension of the hilbert curve , n ∈ [2, +∞]

  • orders:

    Order of the curve

  • uLength:

    Unit length of the curve

  • projType:

    If set true, apply ,otherwise apply parallel projection

  • Destructor

    this.destructor(): void
Remove this hypercube from scene and free the memory.

Properties

  • this.projType: Boolean

    If set true, apply ,otherwise apply parallel projection