toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge
/
korlibs.korge.view.camera
/
Camera
Camera
data
class
Camera
(
var
x
:
Double
=
0.0
,
var
y
:
Double
=
0.0
,
var
zoom
:
Double
=
1.0
,
var
angle
:
Angle
=
0.degrees
,
var
anchorX
:
Double
=
0.5
,
var
anchorY
:
Double
=
0.5
)
:
MutableInterpolable
<
Camera
>
Members
Constructors
Camera
Link copied to clipboard
constructor
(
x
:
Double
=
0.0
,
y
:
Double
=
0.0
,
zoom
:
Double
=
1.0
,
angle
:
Angle
=
0.degrees
,
anchorX
:
Double
=
0.5
,
anchorY
:
Double
=
0.5
)
Properties
anchor
X
Link copied to clipboard
var
anchorX
:
Double
anchor
Y
Link copied to clipboard
var
anchorY
:
Double
angle
Link copied to clipboard
var
angle
:
Angle
x
Link copied to clipboard
var
x
:
Double
y
Link copied to clipboard
var
y
:
Double
zoom
Link copied to clipboard
var
zoom
:
Double
Functions
copy
From
Link copied to clipboard
fun
copyFrom
(
source
:
Camera
)
:
Camera
pos
Easing
Link copied to clipboard
fun
posEasing
(
zoomLeft
:
Double
,
zoomRight
:
Double
,
lx
:
Double
,
rx
:
Double
,
it
:
Double
)
:
Double
set
Anchor
Ratio
Keeping
Pos
Link copied to clipboard
fun
setAnchorRatioKeepingPos
(
anchorX
:
Double
,
anchorY
:
Double
,
width
:
Double
,
height
:
Double
)
set
To
Link copied to clipboard
fun
setTo
(
x
:
Double
=
0.0
,
y
:
Double
=
0.0
,
zoom
:
Double
=
1.0
,
angle
:
Angle
=
0.degrees
,
anchorX
:
Double
=
0.5
,
anchorY
:
Double
=
0.5
)
:
Camera
set
To
Interpolated
Link copied to clipboard
open
override
fun
setToInterpolated
(
ratio
:
Ratio
,
l
:
Camera
,
r
:
Camera
)
:
Camera