The Intersection class represents a ray/object intersection.
It contains the distance to the hit point, the affected Primitive,
and the hit point as Point3.
If there is no hit, distance will be negative.
Constructors
- Intersection([num distance = -1, Primitive prim = null, Point3 hitPoint])
-
Creates a new Intersection object.…
Properties
- distance → num
-
The distance to the intersection.
read / write - hashCode → int
-
Get a hash code for this object.…
read-only, inherited - hitPoint → Point3
-
The hit point.
read / write - prim → Primitive
-
The affected primitive.
read / write - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.…
inherited
Methods
-
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