kyd
Toggle table of contents
common
Platform filter
common
Switch theme
Search in API
kyd
kyd-core
/
uk.co.nickthecoder.kyd.util
/
Vector2
Vector2
data
class
Vector2
(
val
x
:
Float
,
val
y
:
Float
)
Members
Constructors
Vector2
Link copied to clipboard
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
(
value
:
Float
)
:
Vector2
operator
fun
div
(
value
:
Vector2
)
:
Vector2
magnitude
Link copied to clipboard
fun
magnitude
(
)
:
Float
minus
Link copied to clipboard
operator
fun
minus
(
other
:
Vector2
)
:
Vector2
plus
Link copied to clipboard
operator
fun
plus
(
other
:
Vector2
)
:
Vector2
rotate
Radians
Link copied to clipboard
fun
rotateRadians
(
radians
:
Double
)
:
Vector2
fun
rotateRadians
(
radians
:
Float
)
:
Vector2
times
Link copied to clipboard
operator
fun
times
(
value
:
Float
)
:
Vector2
operator
fun
times
(
matrix
:
Matrix
)
:
Vector2
operator
fun
times
(
value
:
Vector2
)
:
Vector2
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
unary
Minus
Link copied to clipboard
operator
fun
unaryMinus
(
)
:
Vector2