openconfiguration 1.5.0

OpenConfiguration (OC) is a modular, efficient and flexible approach for the uni-directional exchange of visual e-commerce configurations.
Documentation
use serde::{Deserialize, Serialize};

use crate::{impl_visitable_noop, Vector3};

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
#[cfg_attr(feature = "schema", schemars(deny_unknown_fields))]
#[serde(rename_all = "camelCase")]
/// A simple camera definition.
/// Up vector is per default in positive y direction.
/// FOV / Dollying depends on viewer.
pub struct Camera {
    /// The position of the target point, a.k.a. look-at point.
    pub look_at: Vector3,

    /// The position of the camera, a.k.a. eye point.
    pub look_from: Vector3,
}

impl_visitable_noop!(Camera);