Float3

@ApiStatus.Internal
class Float3 : Record

A three float value (origin, rotation)

Parameters

x

x

y

y

z

z

Constructors

Link copied to clipboard
constructor(value: Float)
Creates floats

Properties

Link copied to clipboard
Center
Link copied to clipboard
val PARSER: (JsonElement) -> Float3
Parser
Link copied to clipboard
Zero

Functions

Link copied to clipboard
@NotNull
open fun convertToMinecraftDegree(): Float3
Converts zxy euler to xyz euler (Minecraft)
Link copied to clipboard
@NotNull
open fun div(value: Float): Float3
Divides floats.
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
@NotNull
open fun minus(@NotNull other: Float3): Float3
Subtracts other floats.
Link copied to clipboard
@NotNull
open fun plus(@NotNull other: Float3): Float3
Adds other floats.
Link copied to clipboard
@NotNull
open fun rotate(@NotNull quaternionf: Quaternionf): Float3
Rotates this float
Link copied to clipboard
@NotNull
open fun times(value: Float): Float3
Multiplies floats.
Link copied to clipboard
@NotNull
open fun toJson(): JsonArray
Converts floats to JSON array.
Link copied to clipboard
abstract fun toString(): String
Link copied to clipboard
@NotNull
open fun toVector(): Vector3f
Converts floats to vector.