Class: PathSegment
PathBuilding.PathSegment(additionopt, predictionopt)
Represents a path segment that accumulates path points.This class can be used to accumulate added points from the path producer and pass them to the subsequent pipeline stages as a batch.
Constructor
new PathSegment(additionopt, predictionopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
addition | Array.<float> | Float32Array | <optional> | [] |
prediction | Array.<float> | Float32Array | <optional> | [] |
Since:
- version 3.0
Methods
add(phase, added, predicted)
Adds a point to the path segment
Parameters:
Name | Type | Description |
---|---|---|
phase | PathBuilding.Pipeline.Phase | The phase of the point |
added | Array.<float> | Float32Array |
predicted | Array.<float> | Float32Array |
clone() → PathBuilding.PathSegment
Clones path segment
Returns:
Path segment copy
Type
reset()
Resets the path segment to its initial state
Home
Classes
- Color
- Identifiable
- Matrix
- Point
- Rect
- URIResolver
- Environment
- InkInputProvider
- InputContext
- InputDevice
- Scalar
- SensorChannel
- SensorChannelsContext
- SensorContext
- SensorData
- SensorStream
- InkElement
- InkGroup
- InkModel
- InkNode
- InkPath
- InkTree
- View
- InkModelOperation
- InputListener
- Intersector
- Manipulator
- Selector
- SpatialContext
- ConvexHullProducer
- InkBuilder
- InkBuilderAbstract
- InkBuilderAsync
- InkPath2D
- InterpolatedSpline
- Path
- PathFragment
- PathPoint
- PathPointContext
- PathSegment
- BrushApplier
- ConvexHullChainProducer
- CurvatureBasedInterpolator
- DataProcessor
- DataSequenceProcessor
- DistanceBasedInterpolator
- PathProducer
- PolygonMerger
- Smoother
- SplineInterpolator
- SplineProducer
- PipelineData
- PointerData
- Polygon
- PolygonArray
- Spline
- SplineFragment
- SplineParameter
- PluginsManager
- Brush2D
- BrushPrototype
- InkCanvas2D
- OffscreenLayer2D
- RenderingContext2D
- ShapeFactory
- StrokeRenderer2D
- Brush
- InkStyle
- Layer
- StrokeRenderer
- BrushGL
- GLProgram
- InkCanvasGL
- InkContext
- InkLayer
- OffscreenCanvasGL
- OffscreenLayerGL
- RectGL
- StrokeDrawContext
- StrokeRendererGL
- SemanticTriple
- TripleStore
- InkCodec
- InkOperation
- InkToolCodec
- FixedValuePrecisionCalculator
- PrecisionDetector
- PrecisionSchema
- RMSEBasedPrecisionCalculator
- VarianceBasedPrecisionCalculator
- ProtoCodec
- RIFFDecoder
- RIFFEncoder
- TypedArrayCodec
- Stroke
- WebIntegrator