class

Tres::Ray

Inherits Reference < Object

Constructors

new(origin = Tres::Vector3.new, direction = Tres::Vector3.new)
Source

Instance methods

==(ray)

Returns false (other can only be a Value here).

Source
apply_matrix4(matrix4)
Source
at(t, target = Tres::Vector3.new)
Source
clone
Source
closest_point_to_point(point, target = Tres::Vector3.new)
Source
copy(ray)
Source
direction
Source
direction=(direction : Tres::Vector3)
Source
distance_sq_to_segment(v0, v1, point_on_ray = nil, point_on_segment = nil)
Source
distance_to_plane(plane)
Source
distance_to_point(point)
Source
intersect_box(box, target = Tres::Vector3.new)
Source
intersect_plane(plane, target = Tres::Vector3.new)
Source
intersect_sphere(sphere, target = Tres::Vector3.new)
Source
intersect_triangle(a, b, c, backface_culling, target = Tres::Vector3.new)
Source
intersection_box?(box)
Source
intersection_plane?(plane)
Source
intersection_sphere?(sphere)
Source
origin
Source
origin=(origin : Tres::Vector3)
Source
recast(t)
Source
set(origin, direction)
Source