Packagealternativa.engine3d.core
Classpublic class RayIntersectionData
InheritanceRayIntersectionData Inheritance Object

A result of searching for intersection of an Object3D and a ray with intersectRay() method of Object3D.

See also

Object3D.intersectRay()


Public Properties
 PropertyDefined By
  object : Object3D
First object intersected by the ray.
RayIntersectionData
  point : Vector3D
The point of intersection il local coordinates of object.
RayIntersectionData
  surface : Surface
Surface of object on which intersection occurred.
RayIntersectionData
  time : Number
Distance from ray's origin to intersection point expressed in length of localDirection vector.
RayIntersectionData
  uv : Point
Texture coordinates of intersection point.
RayIntersectionData
Public Methods
 MethodDefined By
  
toString():String
Returns the string representation of the specified object.
RayIntersectionData
Property Detail
objectproperty
public var object:Object3D

First object intersected by the ray.

pointproperty 
public var point:Vector3D

The point of intersection il local coordinates of object.

surfaceproperty 
public var surface:Surface

Surface of object on which intersection occurred.

timeproperty 
public var time:Number

Distance from ray's origin to intersection point expressed in length of localDirection vector.

uvproperty 
public var uv:Point

Texture coordinates of intersection point.

Method Detail
toString()method
public function toString():String

Returns the string representation of the specified object.

Returns
String — The string representation of the specified object.