toggle menu
OMH Maps
androidJvm
switch theme
search in API
core
/
com.openmobilehub.android.maps.core.utils.cartesian
/
Offset2D
Offset2D
data
class
Offset2D
<
T
:
Number
>
(
val
x
:
T
,
val
y
:
T
)
A 2D offset.
Members
Constructors
Offset2D
Link copied to clipboard
constructor
(
x
:
T
,
y
:
T
)
Creates a new absolute 2D offset.
Properties
x
Link copied to clipboard
val
x
:
T
y
Link copied to clipboard
val
y
:
T
Functions
plus
Link copied to clipboard
operator
fun
plus
(
other
:
Offset2D
<
T
>
)
:
Offset2D
<
T
>
rotate
Offset
Link copied to clipboard
fun
rotateOffset
(
thetaDeg
:
Double
)
:
Offset2D
<
Double
>
Rotates this offset by the given angle
thetaDeg
.