Companion

Properties

Link copied to clipboard
const val DEAD_ZONE: Float = 0.03f

Points closer to the center than this, in meters, give no usable angle and are skipped.

Functions

Link copied to clipboard
fun angle(x: Float, z: Float): Float?

The angle of a point around the center that a yaw about +y adds to: turning the table by yaw moves a point from angle a to a + yaw. Null inside the dead zone.

Link copied to clipboard
fun wrapped(angle: Float): Float

An angle brought into -π..π.