class Mittsu::Ray

Defined in:

mittsu/math/ray.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(origin = Mittsu::Vector3.new, direction = Mittsu::Vector3.new) #

[View source]

Instance Method Detail

def ==(ray) #
Description copied from class Reference

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


[View source]
def apply_matrix4(matrix4) #

[View source]
def at(t, target = Mittsu::Vector3.new) #

[View source]
def clone #

[View source]
def closest_point_to_point(point, target = Mittsu::Vector3.new) #

[View source]
def copy(ray) #

[View source]
def direction : Mittsu::Vector3 #

[View source]
def direction=(direction : Mittsu::Vector3) #

[View source]
def distance_sq_to_segment(v0, v1, point_on_ray = nil, point_on_segment = nil) #

[View source]
def distance_to_plane(plane) #

[View source]
def distance_to_point(point) #

[View source]
def intersect_box(box, target = Mittsu::Vector3.new) #

[View source]
def intersect_plane(plane, target = Mittsu::Vector3.new) #

[View source]
def intersect_sphere(sphere, target = Mittsu::Vector3.new) #

[View source]
def intersect_triangle(a, b, c, backface_culling, target = Mittsu::Vector3.new) #

[View source]
def intersection_box?(box) #

[View source]
def intersection_plane?(plane) #

[View source]
def intersection_sphere?(sphere) #

[View source]
def origin : Mittsu::Vector3 #

[View source]
def origin=(origin : Mittsu::Vector3) #

[View source]
def recast(t) #

[View source]
def set(origin, direction) #

[View source]