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
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 |
|
getEndFraction
public float getEndFraction ()
Fraction along the length of the path that the end point resides.
| Returns | |
|---|---|
float |
|
getStartFraction
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 |
|