class Tres::Sphere

Defined in:

tres/math/sphere.cr

Constructors

Instance Method Summary

Constructor Detail

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

[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 = Box3.new) #

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

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

[View source]
def clamp_point(point, target = 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 : Float32 #

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

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

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

[View source]
def translate(offset) #

[View source]