capsule
Toggle table of contents
0.1.0
common
Platform filter
common
Switch theme
Search in API
capsule
capsule
/
com.kyant.capsule
/
Segment
Segment
sealed
interface
Segment
(
source
)
Inheritors
Line
IntrinsicArc
Arc
Cubic
Members
Types
Arc
Link copied to clipboard
data
class
Arc
(
val
center
:
Point
,
val
radius
:
Double
,
val
startAngle
:
Double
,
val
sweepAngle
:
Double
)
:
Segment
Cubic
Link copied to clipboard
data
class
Cubic
(
val
p0
:
Point
,
val
p1
:
Point
,
val
p2
:
Point
,
val
p3
:
Point
)
:
Segment
Intrinsic
Arc
Link copied to clipboard
data
class
IntrinsicArc
(
val
from
:
Point
,
val
to
:
Point
,
val
radius
:
Double
)
:
Segment
Line
Link copied to clipboard
data
class
Line
(
val
from
:
Point
,
val
to
:
Point
)
:
Segment
Properties
from
Link copied to clipboard
abstract
val
from
:
Point
to
Link copied to clipboard
abstract
val
to
:
Point
Functions
curvature
At
Link copied to clipboard
abstract
fun
curvatureAt
(
t
:
Double
)
:
Double
draw
To
Link copied to clipboard
abstract
fun
drawTo
(
path
:
Path
)
point
At
Link copied to clipboard
abstract
fun
pointAt
(
t
:
Double
)
:
Point
unit
Tangent
At
Link copied to clipboard
abstract
fun
unitTangentAt
(
t
:
Double
)
:
Point