[][src]Trait pbrt::core::filter::Filter

pub trait Filter {
    fn evaluate(&self, p: Point2f) -> Float;
fn radius(&self) -> Vector2f;
fn inv_radius(&self) -> Vector2f; }

Trait Filter describes a sampling strategy.

Required methods

fn evaluate(&self, p: Point2f) -> Float

evaluate the filter at the given point p.

fn radius(&self) -> Vector2f

return the radius this filter was created with.

fn inv_radius(&self) -> Vector2f

return the inverse of the radius this filter was created with.

Loading content...

Implementors

impl Filter for BoxFilter[src]

fn evaluate(&self, _: Point2f) -> Float[src]

returns 1. for any point given.

fn radius(&self) -> Vector2f[src]

return the radius this filter was created with.

fn inv_radius(&self) -> Vector2f[src]

return the inverse of the radius this filter was created with.

Loading content...