[][src]Struct pbrt::shapes::cylinder::Cylinder

pub struct Cylinder {
    pub radius: Float,
    pub z_min: Float,
    pub z_max: Float,
    pub phi_max: Float,
    pub object_to_world: Transform,
    pub world_to_object: Transform,
    pub reverse_orientation: bool,
    pub transform_swaps_handedness: bool,
    pub material: Option<Arc<Material>>,
}

Fields

radius: Floatz_min: Floatz_max: Floatphi_max: Floatobject_to_world: Transformworld_to_object: Transformreverse_orientation: booltransform_swaps_handedness: boolmaterial: Option<Arc<Material>>

Implementations

impl Cylinder[src]

pub fn new(
    object_to_world: Transform,
    world_to_object: Transform,
    reverse_orientation: bool,
    radius: Float,
    z_min: Float,
    z_max: Float,
    phi_max: Float
) -> Self
[src]

pub fn object_bound(&self) -> Bounds3f[src]

pub fn world_bound(&self) -> Bounds3f[src]

pub fn intersect(
    &self,
    r: &Ray,
    t_hit: &mut Float,
    isect: &mut SurfaceInteraction<'_>
) -> bool
[src]

pub fn intersect_p(&self, r: &Ray) -> bool[src]

pub fn get_reverse_orientation(&self) -> bool[src]

pub fn get_transform_swaps_handedness(&self) -> bool[src]

pub fn get_object_to_world(&self) -> Transform[src]

pub fn area(&self) -> Float[src]

pub fn sample(&self, u: Point2f, pdf: &mut Float) -> InteractionCommon[src]

pub fn sample_with_ref_point(
    &self,
    iref: &InteractionCommon,
    u: Point2f,
    pdf: &mut Float
) -> InteractionCommon
[src]

pub fn pdf_with_ref_point(&self, iref: &dyn Interaction, wi: &Vector3f) -> Float[src]

Trait Implementations

impl Clone for Cylinder[src]

impl Default for Cylinder[src]

Auto Trait Implementations

impl !RefUnwindSafe for Cylinder

impl Send for Cylinder

impl Sync for Cylinder

impl Unpin for Cylinder

impl !UnwindSafe for Cylinder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.