PathSegment

Added in 1.1.0

class PathSegment


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

Summary

Public constructors

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

Public functions

Boolean
equals(o: 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

PathSegment

Added in 1.1.0
PathSegment(
    start: PointF,
    startFraction: Float,
    end: PointF,
    endFraction: Float
)

Public functions

equals

fun equals(o: Any!): Boolean

getEnd

Added in 1.1.0
fun getEnd(): PointF

The end point of the line segment.

getEndFraction

Added in 1.1.0
fun getEndFraction(): Float

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

getStart

Added in 1.1.0
fun getStart(): PointF

The start point of the line segment.

getStartFraction

Added in 1.1.0
fun getStartFraction(): Float

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

hashCode

fun hashCode(): Int

toString

fun toString(): String!