Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
Sphere
Inherits
Hittable
<
Reference
<
Object
Constructors
new
(center :
Vec3
, radius :
Float64
, material :
Material
)
Source
Instance methods
bounding_box
(time0 :
Float64
, time1 :
Float64
) :
AaBb
|
Nil
Source
center
Source
hit
(r :
Ray
, t_min :
Float64
, t_max :
Float64
) :
HitRecord
|
Nil
Source
material
Source
radius
Source