All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.laht.threekt.extras.core.Curve.kt Maven / Gradle / Ivy

The newest version!
@file:JsQualifier("THREE")

package info.laht.threekt.extras.core


external abstract class Curve {

    var arcLengthDivisions: Int

    fun getPoint(t: Double, optionalTarget: E = definedExternally) : E

    fun getPointAt(u: Double, optionalTarget: E = definedExternally): E

    fun getPoints(divisions: Int): Array

    fun getSpacedPoints(divisions: Int): Array

    fun getLength() : Double

    fun updateArcLengths()

    fun getUtoTmapping(u: Double, distance: Double): Double

    fun getTangent(t: Double): E

    fun getTangentAt(u: Double) : E

    fun computeFrenetFrames(segments: Int, closed: Boolean = definedExternally)

    open fun clone(): Curve

    fun copy(source: Curve) : Curve

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy