Hermes
Toggle table of contents
0.2.1
jvm
Platform filter
jvm
Switch theme
Search in API
Hermes
core
/
com.acmerobotics.roadrunner.geometry
/
Vector2d
Vector2d
@
Serializable
data
class
Vector2d
(
val
x
:
Double
,
val
y
:
Double
)
Vector \((x, y)\)
Members
Constructors
Vector2d
Link copied to clipboard
constructor
(
x
:
Double
,
y
:
Double
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
x
Link copied to clipboard
@
JvmField
val
x
:
Double
y
Link copied to clipboard
@
JvmField
val
y
:
Double
Functions
angle
Cast
Link copied to clipboard
fun
angleCast
(
)
:
Rotation2d
as
Pair
Link copied to clipboard
fun
asPair
(
)
:
Pair
<
Double
,
Double
>
div
Link copied to clipboard
operator
fun
div
(
z
:
Double
)
:
Vector2d
dot
Link copied to clipboard
infix
fun
dot
(
v
:
Vector2d
)
:
Double
minus
Link copied to clipboard
operator
fun
minus
(
v
:
Vector2d
)
:
Vector2d
norm
Link copied to clipboard
fun
norm
(
)
:
Double
plus
Link copied to clipboard
operator
fun
plus
(
v
:
Vector2d
)
:
Vector2d
sqr
Norm
Link copied to clipboard
fun
sqrNorm
(
)
:
Double
times
Link copied to clipboard
operator
fun
times
(
z
:
Double
)
:
Vector2d
unary
Minus
Link copied to clipboard
operator
fun
unaryMinus
(
)
:
Vector2d