littlekt
0.6.0
common
core
/
com.lehaine.littlekt.math
/
Ray
Ray
class
Ray
Author
Colton Daily
Constructors
Functions
Properties
Constructors
Ray
Link copied to clipboard
fun
Ray
(
)
Functions
distance
To
Point
Link copied to clipboard
fun
distanceToPoint
(
point
:
Vec3f
)
:
Float
set
Link copied to clipboard
fun
set
(
other
:
Ray
)
set
From
Look
At
Link copied to clipboard
fun
setFromLookAt
(
origin
:
Vec3f
,
lookAt
:
Vec3f
)
sphere
Intersection
Link copied to clipboard
fun
sphereIntersection
(
center
:
Vec3f
,
radius
:
Float
,
result
:
MutableVec3f
)
:
Boolean
sqr
Distance
To
Point
Link copied to clipboard
fun
sqrDistanceToPoint
(
point
:
Vec3f
)
:
Float
fun
sqrDistanceToPoint
(
x
:
Float
,
y
:
Float
,
z
:
Float
)
:
Float
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
transform
By
Link copied to clipboard
fun
transformBy
(
matrix
:
Mat4
)
Properties
direction
Link copied to clipboard
val
direction
:
MutableVec3f
origin
Link copied to clipboard
val
origin
:
MutableVec3f