Top Description Fields Constructors Methods
com.jogamp.opengl.math

public Class Ray

extends Object
Class Inheritance
Imports
com.jogamp.opengl.math.geom.AABBox

Simple compound denoting a ray.

A ray, also known as a half line, consists out of it's origin and direction. Hence it is bound to only the origin side, where the other end is +infinitive.

R(t) = R0 + Rd * t with R0 origin, Rd direction and t > 0.0

A Ray maybe used for picking using a bounding box via fast probe or returning the intersection.

Field Summary

Modifier and TypeField and Description
public final float[]
dir

Normalized direction vector of ray, float[3].

public final float[]
orig

Origin of Ray, float[3].

Constructor Summary

AccessConstructor and Description
public
Ray()

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

dirback to summary
public final float[] dir

Normalized direction vector of ray, float[3].

origback to summary
public final float[] orig

Origin of Ray, float[3].

Constructor Detail

Rayback to summary
public Ray()

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object