PathSegment
-
Cmn
class PathSegment
A path segment represents a curve (line, cubic, quadratic or conic) or a command inside a fully formed Path object.
A segment is identified by a type which in turns defines how many points are available (from 0 to 4 points, each point is represented by 2 floats) and whether the weight is meaningful. Please refer to the documentation of each type for more information.
A segment with the Move or Close is usually represented by the singletons DoneSegment and CloseSegment respectively.
Summary
Nested types |
|---|
enum PathSegment.Type : EnumType of a given segment in a |
Public properties |
||
|---|---|---|
FloatArray |
An array of points (2 floats per point) describing this segment, whose size depends on |
Cmn
|
PathSegment.Type |
The type that identifies this segment and defines the number of points. |
Cmn
|
Float |
Conic weight, only valid if |
Cmn
|
Public properties
points
val points: FloatArray
An array of points (2 floats per point) describing this segment, whose size depends on type.
type
val type: PathSegment.Type
The type that identifies this segment and defines the number of points.
weight
val weight: Float
Conic weight, only valid if type is Type.Conic. See Type.Conic for more information.