Struct smallpt::sphere::Sphere [−][src]
Fields
radius: f64
position: Vector3<f64>
material: Material
Methods
impl Sphere
[src]
impl Sphere
pub fn new(radius: f64, position: Vector3<f64>, material: Material) -> Sphere
[src]
pub fn new(radius: f64, position: Vector3<f64>, material: Material) -> Sphere
pub fn intersect(self, ray: Ray) -> f64
[src]
pub fn intersect(self, ray: Ray) -> f64