Curve class

Extensible curve object.

Some common of curve methods: .getPoint( t, optionalTarget ), .getTangent( t, optionalTarget ) .getPointAt( u, optionalTarget ), .getTangentAt( u, optionalTarget ) .getPoints(), .getSpacedPoints() .getLength() .updateArcLengths()

This following curves inherit from THREE.Curve:

-- 2D curves -- THREE.ArcCurve THREE.CubicBezierCurve THREE.EllipseCurve THREE.LineCurve THREE.QuadraticBezierCurve THREE.SplineCurve

-- 3D curves -- THREE.CatmullRomCurve3 THREE.CubicBezierCurve3 THREE.LineCurve3 THREE.QuadraticBezierCurve3

A series of curves can be represented as a THREE.CurvePath.

*/

Implementers

Constructors

Curve()
Curve.fromJSON(Map<String, dynamic> json)

Properties

arcLengthDivisions num
getter/setter pair
autoClose bool
getter/setter pair
cacheArcLengths List<num>?
getter/setter pair
cacheLengths List<num>?
getter/setter pair
currentPoint Vector2
getter/setter pair
curves List<Curve>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isCubicBezierCurve bool
getter/setter pair
isEllipseCurve bool
getter/setter pair
isLineCurve bool
getter/setter pair
isLineCurve3 bool
getter/setter pair
isQuadraticBezierCurve bool
getter/setter pair
isSplineCurve bool
getter/setter pair
needsUpdate bool
getter/setter pair
points List
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
getter/setter pair
userData Map<String, dynamic>
getter/setter pair
v0 Vector2
getter/setter pair
v1 Vector2
getter/setter pair
v2 Vector2
getter/setter pair

Methods

clone() → dynamic
computeFrenetFrames(dynamic segments, dynamic closed) → dynamic
copy(dynamic source) → dynamic
fromJSON(dynamic json) → dynamic
getLength() → dynamic
getLengths(dynamic divisions) → dynamic
getPoint(num t, dynamic optionalTarget) → dynamic
getPointAt(dynamic u, dynamic optionalTarget) → dynamic
getPoints([num divisions = 5]) → dynamic
getSpacedPoints([num divisions = 5, num offset = 0]) → dynamic
getTangent(dynamic t, [dynamic optionalTarget]) → dynamic
getTangentAt(dynamic u, dynamic optionalTarget) → dynamic
getUtoTmapping(dynamic u, [dynamic distance]) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() → dynamic
toString() String
A string representation of this object.
inherited
updateArcLengths() → dynamic

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

castJSON(Map<String, dynamic> json) → dynamic