[−][src]Struct cam_geom::OrthographicParams
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]
fn clone(&self) -> OrthographicParams<R>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<R: Debug + RealField> Debug for OrthographicParams<R>
[src]
impl<'de, R: RealField> Deserialize<'de> for OrthographicParams<R> where
R: Deserialize<'de>,
[src]
R: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<R: RealField> From<OrthographicParams<R>> for IntrinsicParametersOrthographic<R>
[src]
fn from(params: OrthographicParams<R>) -> Self
[src]
impl<R: PartialEq + RealField> PartialEq<OrthographicParams<R>> for OrthographicParams<R>
[src]
fn eq(&self, other: &OrthographicParams<R>) -> bool
[src]
fn ne(&self, other: &OrthographicParams<R>) -> bool
[src]
impl<R: RealField> Serialize for OrthographicParams<R> where
R: Serialize,
[src]
R: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<R: RealField> StructuralPartialEq for OrthographicParams<R>
[src]
Auto Trait Implementations
impl<R> RefUnwindSafe for OrthographicParams<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
impl<R> Send for OrthographicParams<R>
impl<R> Sync for OrthographicParams<R>
impl<R> Unpin for OrthographicParams<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for OrthographicParams<R> where
R: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,