Ray class

Defines a Ray by an origin and a direction.

Constructors

Ray()
Create a new, uninitialized ray.
Ray.copy(Ray other)
Create a ray as a copy of other.
Ray.originDirection(Vector3 origin, Vector3 direction)
Create a ray with an origin and a direction.

Properties

direction Vector3
The direction of the ray.
read-only
origin Vector3
The origin of the ray.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited