info.laht.threekt.extras.core.Curve.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wrapper Show documentation
Show all versions of wrapper Show documentation
kotlin wrappers for three.js (https://threejs.org/)
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
}