core-ktx / androidx.graphics / PathSegment

PathSegment

data class PathSegment

A PathSegment is a line segment that represents an approximate fraction of a Path after flattening.

Constructors

<init>

PathSegment(start: PointF, startFraction: Float, end: PointF, endFraction: Float)

A PathSegment is a line segment that represents an approximate fraction of a Path after flattening.

Properties

end

val end: PointF

The end point of the line segment.

endFraction

val endFraction: Float

Fraction along the length of the path that the end point resides.

start

val start: PointF

The start point of the line segment.

startFraction

val startFraction: Float

Fraction along the length of the path that the start point resides.