PathSegment

class PathSegment
kotlin.Any
   ↳ androidx.core.graphics.PathSegment

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

Summary

Public constructors
<init>(start: PointF, startFraction: Float, end: PointF, endFraction: Float)

Public methods
PointF

The start point of the line segment.

Float

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

Int

Float

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

PointF

The end point of the line segment.

Boolean
equals(other: Any?)

String

Public constructors

<init>

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

Public methods

getStart

fun getStart(): PointF

The start point of the line segment.

getStartFraction

fun getStartFraction(): Float

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

hashCode

fun hashCode(): Int

getEndFraction

fun getEndFraction(): Float

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

getEnd

fun getEnd(): PointF

The end point of the line segment.

equals

fun equals(other: Any?): Boolean

toString

fun toString(): String