Class: Curve3

Curve3()

Base class for 3D curves.

Constructor

new Curve3()

Abstract curve base.
Source:
Throws:
When instantiated directly.
Type
Error

Classes

Curve3

Methods

getPoint(normalizedParameter, outopt) → {Vector3}

Computes a point on the curve at normalized parameter.
Parameters:
Name Type Attributes Description
normalizedParameter number Parameter in [0..1].
out Vector3 <optional>
Optional output vector.
Source:
Throws:
When not implemented by subclass.
Type
Error
Returns:
Type
Vector3

getPointAt(normalizedParameter, outopt) → {Vector3}

Returns a point on the curve at normalized parameter.
Parameters:
Name Type Attributes Description
normalizedParameter number Parameter in [0..1].
out Vector3 <optional>
Optional output vector.
Source:
Throws:
When not implemented by subclass.
Type
Error
Returns:
Type
Vector3

getPoints(segmentsopt) → {Array.<Vector3>}

Samples the curve into the polyline.
Parameters:
Name Type Attributes Default Description
segments number <optional>
32 Sample segment count.
Source:
Throws:
  • When segments is not a finite number.
    Type
    TypeError
  • When segments is not an `integer >= 1`.
    Type
    RangeError
Returns:
Type
Array.<Vector3>

getTangent(normalizedParameter, outopt) → {Vector3}

Computes a tangent on the curve at normalized parameter.
Parameters:
Name Type Attributes Description
normalizedParameter number Parameter in [0..1].
out Vector3 <optional>
Optional output vector.
Source:
Throws:
When not implemented by subclass.
Type
Error
Returns:
Type
Vector3

getTangentAt(normalizedParameter, outopt) → {Vector3}

Returns a tangent on the curve at normalized parameter.
Parameters:
Name Type Attributes Description
normalizedParameter number Parameter in [0..1].
out Vector3 <optional>
Optional output vector.
Source:
Throws:
When not implemented by subclass.
Type
Error
Returns:
Type
Vector3