/// A rectangular frustum shaped sensor volume, defined by included angles.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct Geo3dSensorShapeRectangularIncludedFov {
    #[builder(custom(type = super::VariableStaticOrChannel, convert = Box::new))]
    #[serde(rename = "xFov")]
    x_fov: Box<super::VariableStaticOrChannel>,
    #[builder(custom(type = super::VariableStaticOrChannel, convert = Box::new))]
    #[serde(rename = "yFov")]
    y_fov: Box<super::VariableStaticOrChannel>,
    #[builder(custom(type = super::VariableStaticOrChannel, convert = Box::new))]
    #[serde(rename = "length")]
    length: Box<super::VariableStaticOrChannel>,
}
impl Geo3dSensorShapeRectangularIncludedFov {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        x_fov: super::VariableStaticOrChannel,
        y_fov: super::VariableStaticOrChannel,
        length: super::VariableStaticOrChannel,
    ) -> Self {
        Self::builder().x_fov(x_fov).y_fov(y_fov).length(length).build()
    }
    /// Full field-of-view (FOV) angle in the sensor's horizontal direction, in degrees.
    #[inline]
    pub fn x_fov(&self) -> &super::VariableStaticOrChannel {
        &*self.x_fov
    }
    /// Full field-of-view (FOV) angle in the sensor's vertical direction, in degrees.
    #[inline]
    pub fn y_fov(&self) -> &super::VariableStaticOrChannel {
        &*self.y_fov
    }
    /// Length for the projection, in meters.
    #[inline]
    pub fn length(&self) -> &super::VariableStaticOrChannel {
        &*self.length
    }
}
