PathSegment

Added in 1.1.0

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

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

Public methods

equals

public boolean equals(Object o)

getEnd

Added in 1.1.0
public @NonNull PointF getEnd()

The end point of the line segment.

getEndFraction

Added in 1.1.0
public float getEndFraction()

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

getStart

Added in 1.1.0
public @NonNull PointF getStart()

The start point of the line segment.

getStartFraction

Added in 1.1.0
public float getStartFraction()

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

hashCode

public int hashCode()

toString

public String toString()