JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.math.Ray Class Reference

Simple compound denoting a ray. More...

Collaboration diagram for com.jogamp.math.Ray:

Public Member Functions

String toString ()
 

Public Attributes

final Vec3f orig = new Vec3f()
 Origin of Ray. More...
 
final Vec3f dir = new Vec3f()
 Normalized direction vector of ray. More...
 

Detailed Description

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.

Definition at line 49 of file Ray.java.

Member Function Documentation

◆ toString()

String com.jogamp.math.Ray.toString ( )

Definition at line 57 of file Ray.java.

Member Data Documentation

◆ dir

final Vec3f com.jogamp.math.Ray.dir = new Vec3f()

Normalized direction vector of ray.

Definition at line 54 of file Ray.java.

◆ orig

final Vec3f com.jogamp.math.Ray.orig = new Vec3f()

Origin of Ray.

Definition at line 51 of file Ray.java.


The documentation for this class was generated from the following file: