Stay organized with collections Save and categorize content based on your preferences.

PathSegment

public final class PathSegment


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

Summary

Public constructors

PathSegment(
    @NonNull PointF start,
    float startFraction,
    @NonNull PointF end,
    float endFraction
)

Public methods

boolean
@NonNull PointF

The end point of the line segment.

float

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

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

public PathSegment(
    @NonNull PointF start,
    float startFraction,
    @NonNull PointF end,
    float endFraction
)

Public methods

equals

public boolean equals(Object o)

getEnd

public @NonNull PointF getEnd()

The end point of the line segment.

getEndFraction

public float getEndFraction()

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

getStart

public @NonNull PointF getStart()

The start point of the line segment.

getStartFraction

public float getStartFraction()

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

hashCode

public int hashCode()

toString

public String toString()