class Mittsu::Plane

Defined in:

mittsu/math/plane.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(normal = Mittsu::Vector3.new(1, 0, 0), constant = 0.0) #

[View source]

Instance Method Detail

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

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


[View source]
def apply_matrix4(matrix, normal_matrix = Mittsu::Matrix3.new.normal_matrix(matrix)) #

[View source]
def clone #

[View source]
def constant : Float64 #

[View source]
def constant=(constant : Float64) #

[View source]
def coplanar_point(target = Mittsu::Vector3.new) #

[View source]
def copy(plane) #

[View source]
def distance_to_point(point) #

[View source]
def distance_to_sphere(sphere) #

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

[View source]
def intersection_line?(line) #

[View source]
def negate #

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

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

[View source]
def normalize #

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

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

[View source]
def set(normal, constant) #

[View source]
def set_components(x, y, z, w) #

[View source]
def set_from_coplanar_points(a, b, c) #

[View source]
def set_from_normal_and_coplanar_point(normal, point) #

[View source]
def translate(offset) #

[View source]