class Mittsu::Sphere

Defined in:

mittsu/math/sphere.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(center = Mittsu::Vector3.new, radius = 0.0) #

[View source]

Instance Method Detail

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

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


[View source]
def apply_matrix4(matrix) #

[View source]
def bounding_box(target = Mittsu::Box3.new) #

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

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

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

[View source]
def clone #

[View source]
def contains_point?(point) #

[View source]
def copy(sphere) #

[View source]
def distance_to_point(point) #

[View source]
def empty #

[View source]
def intersects_sphere?(sphere) #

[View source]
def radius : Float64 #

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

[View source]
def set(center, radius) #

[View source]
def set_from_points(points, optional_center = nil) #

[View source]
def translate(offset) #

[View source]