LiquidBounce
Toggle table of contents
0.41.1
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
LiquidBounce
LiquidBounce
/
net.ccbluex.liquidbounce.utils.math.geometry
/
AlignedFace
Aligned
Face
class
AlignedFace
(
from
:
Vec3
,
to
:
Vec3
)
A face. Axis aligned
Members
Constructors
Aligned
Face
Link copied to clipboard
constructor
(
from
:
Vec3
,
to
:
Vec3
)
Properties
area
Link copied to clipboard
val
area
:
Double
center
Link copied to clipboard
val
center
:
Vec3
dimensions
Link copied to clipboard
val
dimensions
:
Vec3
from
Link copied to clipboard
val
from
:
Vec3
to
Link copied to clipboard
val
to
:
Vec3
Functions
<no
name
provided>
Link copied to clipboard
fun
<no name provided>
(
)
as
Box
Link copied to clipboard
fun
asBox
(
)
:
AABB
clamp
Link copied to clipboard
fun
clamp
(
box
:
AABB
)
:
AlignedFace
coerce
In
Face
Link copied to clipboard
fun
coerceInFace
(
line
:
LinearGeometry3
)
:
LineSegment
?
nearest
Point
To
Link copied to clipboard
fun
nearestPointTo
(
otherLine
:
LinearGeometry3
)
:
Vec3
offset
Link copied to clipboard
fun
offset
(
vec
:
Vec3i
)
:
AlignedFace
fun
offset
(
vec
:
Vec3
)
:
AlignedFace
random
Point
On
Face
Link copied to clipboard
fun
randomPointOnFace
(
)
:
Vec3
require
Non
Empty
Link copied to clipboard
fun
requireNonEmpty
(
)
:
AlignedFace
?
sample
Point
On
Face
Link copied to clipboard
fun
samplePointOnFace
(
a
:
Double
,
b
:
Double
)
:
Vec3
Samples a point on the face by spreading
a
and
b
over its two variable axes.
to
Plane
Link copied to clipboard
fun
toPlane
(
)
:
NormalizedPlane
truncate
Y
Link copied to clipboard
fun
truncateY
(
minY
:
Double
)
:
AlignedFace