[][src]Struct cam_geom::OrthographicParams

pub struct OrthographicParams<R: RealField> {
    pub sx: R,
    pub sy: R,
    pub cx: R,
    pub cy: R,
}

Parameters defining the intrinsic part of an orthographic camera model.

These parameters describe the intrinsic parameters, the transformation from camera coordinates to pixel coordinates, for an orthographic camera model. For a full transformation from world coordinates to pixel coordinates, use a Camera, which can be constructed with these intinsic parameters and extrinsic parameters.

Read more about the orthographic projection.

Can be converted into IntrinsicParametersOrthographic via the .into() method like so:

use cam_geom::*;
let params = OrthographicParams {
    sx: 100.0,
    sy: 100.0,
    cx: 640.0,
    cy: 480.0,
};
let intrinsics: IntrinsicParametersOrthographic<_> = params.into();

Fields

sx: R

Horizontal scale.

sy: R

Vertical scale.

cx: R

Horizontal component of image center.

cy: R

Vertical component of image center.

Trait Implementations

impl<R: Clone + RealField> Clone for OrthographicParams<R>[src]

impl<R: Debug + RealField> Debug for OrthographicParams<R>[src]

impl<'de, R: RealField> Deserialize<'de> for OrthographicParams<R> where
    R: Deserialize<'de>, 
[src]

impl<R: RealField> From<OrthographicParams<R>> for IntrinsicParametersOrthographic<R>[src]

impl<R: PartialEq + RealField> PartialEq<OrthographicParams<R>> for OrthographicParams<R>[src]

impl<R: RealField> Serialize for OrthographicParams<R> where
    R: Serialize
[src]

impl<R: RealField> StructuralPartialEq for OrthographicParams<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for OrthographicParams<R> where
    R: RefUnwindSafe

impl<R> Send for OrthographicParams<R>

impl<R> Sync for OrthographicParams<R>

impl<R> Unpin for OrthographicParams<R> where
    R: Unpin

impl<R> UnwindSafe for OrthographicParams<R> where
    R: UnwindSafe

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,