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>(@NonNull start: PointF, startFraction: Float, @NonNull end: PointF, endFraction: Float)

Public methods

Boolean
equals(other: Any?)

PointF

The end point of the line segment.

Float

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

PointF

The start point of the line segment.

Float

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

Int

String

Public constructors

<init>

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

Public methods

equals

fun equals(other: Any?): Boolean

getEnd

@NonNull fun getEnd(): PointF

The end point of the line segment.

getEndFraction

fun getEndFraction(): Float

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

getStart

@NonNull 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

toString

fun toString(): String