toggle menu
mapsglmaps
androidJvm
switch theme
search in API
mapsglmaps
/
com.xweather.mapsglmaps.utils
/
Vec2
Vec2
data
class
Vec2
(
val
x
:
Float
,
val
y
:
Float
)
Members
Constructors
Vec2
Link copied to clipboard
constructor
(
)
constructor
(
x
:
Number
,
y
:
Number
)
constructor
(
x
:
Float
,
y
:
Float
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
x
Link copied to clipboard
val
x
:
Float
y
Link copied to clipboard
val
y
:
Float
Functions
div
Link copied to clipboard
operator
fun
div
(
scalar
:
Number
)
:
Vec2
dst2To
Link copied to clipboard
infix
fun
dst2To
(
to
:
Vec2
)
:
Float
dst
To
Link copied to clipboard
infix
fun
dstTo
(
to
:
Vec2
)
:
Float
minus
Link copied to clipboard
operator
fun
minus
(
vec
:
Vec2
)
:
Vec2
norm
Link copied to clipboard
fun
norm
(
)
:
Vec2
plus
Link copied to clipboard
operator
fun
plus
(
vec
:
Vec2
)
:
Vec2
rotate
Link copied to clipboard
fun
rotate
(
degrees
:
Float
)
:
Vec2
scl
Link copied to clipboard
infix
fun
scl
(
by
:
Vec2
)
:
Vec2
times
Link copied to clipboard
operator
fun
times
(
scalar
:
Number
)
:
Vec2
unary
Minus
Link copied to clipboard
operator
fun
unaryMinus
(
)
:
Vec2