Boks2D
Toggle table of contents
0.1.1
common
Target filter
common
Switch theme
Search in API
Skip to content
Boks2D
Boks2D
/
io.github.joaomcl.boks2d.math
/
Transform
Transform
data
class
Transform
(
val
position
:
Vec2
,
val
rotation
:
Rot
)
A 2D transform containing position and rotation.
Members
Constructors
Transform
Link copied to clipboard
constructor
(
position
:
Vec2
,
rotation
:
Rot
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
position
Link copied to clipboard
val
position
:
Vec2
rotation
Link copied to clipboard
val
rotation
:
Rot
Functions
inverse
Transform
Point
Link copied to clipboard
fun
inverseTransformPoint
(
point
:
Vec2
)
:
Vec2
times
Link copied to clipboard
operator
fun
times
(
other
:
Transform
)
:
Transform
transform
Point
Link copied to clipboard
fun
transformPoint
(
point
:
Vec2
)
:
Vec2