pylon-core
Toggle table of contents
1.0.0-SNAPSHOT
jvm
Platform filter
jvm
Switch theme
Search in API
pylon-core
pylon-core
/
io.github.pylonmc.pylon.core.entity.display.transform
/
TransformUtil
Transform
Util
object
TransformUtil
(
source
)
Members
Functions
get
Direction
Link copied to clipboard
@
JvmStatic
fun
getDirection
(
from
:
Location
,
to
:
Location
)
:
Vector3f
@
JvmStatic
fun
getDirection
(
from
:
Vector3d
,
to
:
Vector3d
)
:
Vector3d
@
JvmStatic
fun
getDirection
(
from
:
Vector3f
,
to
:
Vector3f
)
:
Vector3f
get
Displacement
Link copied to clipboard
@
JvmStatic
fun
getDisplacement
(
from
:
Location
,
to
:
Location
)
:
Vector3f
@
JvmStatic
fun
getDisplacement
(
from
:
Vector3d
,
to
:
Vector3d
)
:
Vector3d
@
JvmStatic
fun
getDisplacement
(
from
:
Vector3f
,
to
:
Vector3f
)
:
Vector3f
get
Midpoint
Link copied to clipboard
@
JvmStatic
fun
getMidpoint
(
from
:
Location
,
to
:
Location
)
:
Location
@
JvmStatic
fun
getMidpoint
(
from
:
Vector3d
,
to
:
Vector3d
)
:
Vector3d
@
JvmStatic
fun
getMidpoint
(
from
:
Vector3f
,
to
:
Vector3f
)
:
Vector3f
rotated
Radius
Link copied to clipboard
@
JvmStatic
fun
rotatedRadius
(
radius
:
Double
,
y
:
Double
)
:
Vector3d
@
JvmStatic
fun
rotatedRadius
(
radius
:
Float
,
y
:
Float
)
:
Vector3f
@
JvmStatic
fun
rotatedRadius
(
radius
:
Double
,
x
:
Double
,
y
:
Double
,
z
:
Double
)
:
Vector3d
@
JvmStatic
fun
rotatedRadius
(
radius
:
Float
,
x
:
Float
,
y
:
Float
,
z
:
Float
)
:
Vector3f
to
Matrix
Link copied to clipboard
@
JvmStatic
@
JvmName
(
name
=
"transformationToMatrix"
)
fun
Transformation
.
toMatrix
(
)
:
Matrix4f
yaw
To
Cardinal
Direction
Link copied to clipboard
@
JvmStatic
fun
yawToCardinalDirection
(
yaw
:
Double
)
:
Double
@
JvmStatic
fun
yawToCardinalDirection
(
yaw
:
Float
)
:
Float
yaw
To
Face
Link copied to clipboard
@
JvmStatic
fun
yawToFace
(
yaw
:
Double
)
:
BlockFace
@
JvmStatic
fun
yawToFace
(
yaw
:
Float
)
:
BlockFace