pub struct Camera4D {
pub position: HyperPoint4D,
pub frame: Mat5,
pub model: HyperModel,
pub cam3d: Camera3D,
}Expand description
Camera in 4D hyperbolic space. The camera sits at a point in ℍ⁴ and projects scenes to 3D for final rendering.
Fields§
§position: HyperPoint4DCamera position in ℍ⁴ (hyperboloid model).
frame: Mat5Local reference frame as a 5×5 Lorentz matrix (columns = local axes).
model: HyperModel§cam3d: Camera3D3D camera used for the final perspective pass after 4D→3D projection.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Camera4D
impl<'de> Deserialize<'de> for Camera4D
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Camera4D
impl RefUnwindSafe for Camera4D
impl Send for Camera4D
impl Sync for Camera4D
impl Unpin for Camera4D
impl UnsafeUnpin for Camera4D
impl UnwindSafe for Camera4D
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more