MinecraftVector

case
class MinecraftVector(x: Double, y: Double, z: Double)

A point in the Minecraft space.

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def pitch: Float

Pitch of an entity whose face direction is collinear to this vector. Requires that this vector is nonzero.

Pitch of an entity whose face direction is collinear to this vector. Requires that this vector is nonzero.

See https://wiki.vg/index.php?title=Protocol&oldid=16681#Player_Rotation for details.

The linear map projecting this vector onto XZ plane of the Minecraft space.

The linear map projecting this vector onto XZ plane of the Minecraft space.

def yaw: Float

Yaw of an entity whose face direction is collinear to this vector, clamped to the interval [0, 360). Requires that this vector has nonzero projection onto XZ plane.

Yaw of an entity whose face direction is collinear to this vector, clamped to the interval [0, 360). Requires that this vector has nonzero projection onto XZ plane.

See https://wiki.vg/index.php?title=Protocol&oldid=16681#Player_Rotation for details.

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product