kool-editor-model
Toggle table of contents
0.18.0
common
Platform filter
common
Switch theme
Search in API
kool-editor-model
kool-editor-model
/
de.fabmax.kool.editor.data
/
Vec2Data
Vec2Data
@
Serializable
data
class
Vec2Data
(
val
x
:
Double
,
val
y
:
Double
)
Members
Constructors
Vec2Data
Link copied to clipboard
constructor
(
vec
:
Vec2d
)
constructor
(
vec
:
Vec2f
)
constructor
(
vec
:
Vec2i
)
constructor
(
x
:
Double
,
y
:
Double
)
Properties
x
Link copied to clipboard
val
x
:
Double
y
Link copied to clipboard
val
y
:
Double
Functions
to
Vec2d
Link copied to clipboard
fun
toVec2d
(
result
:
MutableVec2d
=
MutableVec2d()
)
:
MutableVec2d
to
Vec2f
Link copied to clipboard
fun
toVec2f
(
result
:
MutableVec2f
=
MutableVec2f()
)
:
MutableVec2f
to
Vec2i
Link copied to clipboard
fun
toVec2i
(
result
:
MutableVec2i
=
MutableVec2i()
)
:
MutableVec2i