CounterStrikeGrenades
Toggle table of contents
1.20.1-1.5.0-prerelease
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
CounterStrikeGrenades
CounterStrikeGrenades
/
club.pisquad.minecraft.csgrenades.math
/
Segment
Segment
class
Segment
(
val
begin
:
Vec3
,
val
end
:
Vec3
)
Members
Constructors
Segment
Link copied to clipboard
constructor
(
begin
:
Vec3
,
end
:
Vec3
)
Properties
begin
Link copied to clipboard
val
begin
:
Vec3
end
Link copied to clipboard
val
end
:
Vec3
max
X
Link copied to clipboard
val
maxX
:
Double
max
Y
Link copied to clipboard
val
maxY
:
Double
max
Z
Link copied to clipboard
val
maxZ
:
Double
min
X
Link copied to clipboard
val
minX
:
Double
min
Y
Link copied to clipboard
val
minY
:
Double
min
Z
Link copied to clipboard
val
minZ
:
Double
Functions
direction
Link copied to clipboard
fun
direction
(
)
:
Vec3
divide
Link copied to clipboard
fun
divide
(
axis
:
Direction.Axis
,
position
:
Double
)
:
Pair
<
Segment
,
Segment
>
divide
Along
Axis
Link copied to clipboard
fun
divideAlongAxis
(
axis
:
Direction.Axis
)
:
List
<
Segment
>
get
Point
By
Axis
Link copied to clipboard
fun
getPointByAxis
(
axis
:
Direction.Axis
,
position
:
Double
)
:
Vec3
intersect
Aabb
Link copied to clipboard
fun
intersectAabb
(
aabb
:
AABB
)
:
Pair
<
Vec3
,
Direction
>
?
length
Link copied to clipboard
fun
length
(
)
:
Double
mid
Point
Link copied to clipboard
fun
midPoint
(
)
:
Vec3