lightbulb_outline Please take our October 2018 developer survey. Start survey
added in version 1.0.0
belongs to Maven artifact androidx.core:core:1.0.0

PathSegment

public final class PathSegment
extends Object

java.lang.Object
   ↳ androidx.core.graphics.PathSegment


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

Summary

Public constructors

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

Public methods

boolean equals(Object o)
PointF getEnd()

The end point of the line segment.

float getEndFraction()

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

PointF getStart()

The start point of the line segment.

float getStartFraction()

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

int hashCode()
String toString()

Inherited methods

Public constructors

PathSegment

added in version 1.0.0
public PathSegment (PointF start, 
                float startFraction, 
                PointF end, 
                float endFraction)

Parameters
start PointF

startFraction float

end PointF

endFraction float

Public methods

equals

public boolean equals (Object o)

Parameters
o Object

Returns
boolean

getEnd

added in version 1.0.0
public PointF getEnd ()

The end point of the line segment.

Returns
PointF

getEndFraction

added in version 1.0.0
public float getEndFraction ()

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

Returns
float

getStart

added in version 1.0.0
public PointF getStart ()

The start point of the line segment.

Returns
PointF

getStartFraction

added in version 1.0.0
public float getStartFraction ()

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

Returns
float

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String