[][src]Struct shepplogan::Ellipse

pub struct Ellipse { /* fields omitted */ }

Ellipse

Methods

impl Ellipse
[src]

pub fn new(
    center_x: f64,
    center_y: f64,
    major_axis: f64,
    minor_axis: f64,
    theta: f64,
    intensity: f64
) -> Self
[src]

Constructor

pub fn inside(&self, x: f64, y: f64) -> bool
[src]

Checks if a point is inside the ellipse

pub fn intensity(&self) -> f64
[src]

Return intensity of the ellipse

pub fn bounding_box(&self, nx: usize, ny: usize) -> (usize, usize, usize, usize)
[src]

Return the bounding box of the ellipse

Auto Trait Implementations

impl Send for Ellipse

impl Sync for Ellipse

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.