use std::ops::Deref;
use re_sdk_types::components;
use crate::TransformFrameIdHash;
#[derive(Clone, Debug, PartialEq, re_byte_size::SizeBytes)]
pub struct ResolvedPinholeProjection {
pub(crate) cached: ResolvedPinholeProjectionCached,
pub view_coordinates: components::ViewCoordinates,
}
impl Deref for ResolvedPinholeProjection {
type Target = ResolvedPinholeProjectionCached;
#[inline]
fn deref(&self) -> &Self::Target {
&self.cached
}
}
#[derive(Clone, Debug, PartialEq, re_byte_size::SizeBytes)]
pub struct ResolvedPinholeProjectionCached {
pub parent: TransformFrameIdHash,
pub image_from_camera: components::PinholeProjection,
pub resolution: Option<components::Resolution>,
}