toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.math.geom
/
Anchor2D
Anchor2D
data
class
Anchor2D
(
val
sx
:
Double
,
val
sy
:
Double
)
:
Interpolable
<
Anchor
>
Members
Constructors
Anchor2D
Link copied to clipboard
constructor
(
sx
:
Float
,
sy
:
Float
)
constructor
(
sx
:
Int
,
sy
:
Int
)
constructor
(
sx
:
Double
,
sy
:
Double
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
ratio
X
Link copied to clipboard
val
ratioX
:
Ratio
ratio
Y
Link copied to clipboard
val
ratioY
:
Ratio
sx
Link copied to clipboard
val
sx
:
Double
sy
Link copied to clipboard
val
sy
:
Double
Functions
interpolate
With
Link copied to clipboard
open
override
fun
interpolateWith
(
ratio
:
Ratio
,
other
:
Anchor
)
:
Anchor
to
Named
String
Link copied to clipboard
fun
toNamedString
(
)
:
String
to
Vector
Link copied to clipboard
fun
toVector
(
)
:
Vector2D
with
X
Link copied to clipboard
inline
fun
withX
(
ratioX
:
Ratio
)
:
Anchor
inline
fun
withX
(
sx
:
Number
)
:
Anchor
with
Y
Link copied to clipboard
inline
fun
withY
(
ratioY
:
Ratio
)
:
Anchor
inline
fun
withY
(
sy
:
Number
)
:
Anchor