Class: HitResult

PD.Octree. HitResult

A class for storing octree hit-test results.


new HitResult()

Author:
  • drajmarsh

Members


:THREE.Color|null

color

The color of the primary intersected surface, as a hexadecimal number, defaults to null.

Type
  • THREE.Color | null

:THREE.Vector3

distance

The distance of intersected triangle from the ray origin, defaults to 0.

Type
  • THREE.Vector3

:THREE.Vector3

intersection

The triangle intersection point as a vector, defaults to {0,0,0}.

Type
  • THREE.Vector3

:number

reflectance

The accumulated reflectance from all intersected surfaces, defaults to 0.

Type
  • number

:number

transmittance

The accumulated transmittance of all intersected surfaces, defaults to 1.

Type
  • number

:PD.Triangle|null

triangle

The triangle within the octree that was intersected, defaults to null.

Type