Ray class
Defines a Ray by an origin and a direction.
Methods
-
at(double t)
→ Vector3
-
Returns the position on this with a distance of
t
from origin.
-
copyAt(Vector3 other, double t)
→ void
-
Copy the position on this with a distance of
t
from origin into
other
.
-
copyFrom(Ray other)
→ void
-
Copy the origin and direction from
other
into this.
-
intersectsWithAabb3(Aabb3 other)
→ double?
-
Return the distance from the origin of this to the intersection with
other
if this intersects with other
, or null if the don't intersect.
-
intersectsWithQuad(Quad other)
→ double?
-
Return the distance from the origin of this to the intersection with
other
if this intersects with other
, or null if the don't intersect.
-
intersectsWithSphere(Sphere other)
→ double?
-
Return the distance from the origin of this to the intersection with
other
if this intersects with other
, or null if the don't intersect.
-
intersectsWithTriangle(Triangle other)
→ double?
-
Return the distance from the origin of this to the intersection with
other
if this intersects with other
, or null if the don't intersect.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited