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) Curve
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