Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

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

Public methods

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

getEndFraction

fun getEndFraction(): Float

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

getEnd

@NonNull fun getEnd(): PointF

The end point of the line segment.

equals

fun equals(other: Any?): Boolean

toString

fun toString(): String