class

Tres::Sphere

Inherits Reference < Object

Constructors

new(center : Tres::Vector3 = Vector3.new, radius = 0.0_f32)
Source

Instance methods

==(sphere)

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

Source
apply_matrix4(matrix)
Source
bounding_box(target = Box3.new)
Source
center
Source
center=(center : Tres::Vector3)
Source
clamp_point(point, target = Vector3.new)
Source
clone
Source
contains_point?(point)
Source
copy(sphere)
Source
distance_to_point(point)
Source
empty
Source
intersects_sphere?(sphere)
Source
radius
Source
radius=(radius : Float32)
Source
set(center, radius)
Source
set_from_points(points, optional_center = nil)
Source
translate(offset)
Source