sesl.androidx
Toggle table of contents
main
Platform filter
main
Switch theme
Search in API
sesl.androidx
core
/
androidx.core.graphics
/
PathUtils
Path
Utils
class
PathUtils
(
source
)
A set of path-related utility methods.
Members
Functions
flatten
Link copied to clipboard
@
RequiresApi
(
value
=
26
)
@
NonNull
open
fun
flatten
(
@
NonNull
path
:
@
NonNull
Path
)
:
@
NonNull
Collection
<
PathSegment
>
Flattens (or approximate) a
Path
with a series of line segments using a 0.5 pixel error.
@
RequiresApi
(
value
=
26
)
@
NonNull
open
fun
flatten
(
@
NonNull
path
:
@
NonNull
Path
,
@
FloatRange
(
from
=
0
)
error
:
Float
)
:
@
NonNull
Collection
<
PathSegment
>
Flattens (or approximate) a
Path
with a series of line segments.