#[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 CartesianBounds {
#[builder(custom(type = super::DoubleConstant, convert = Box::new))]
#[serde(rename = "minX")]
min_x: Box<super::DoubleConstant>,
#[builder(custom(type = super::DoubleConstant, convert = Box::new))]
#[serde(rename = "maxX")]
max_x: Box<super::DoubleConstant>,
#[builder(custom(type = super::DoubleConstant, convert = Box::new))]
#[serde(rename = "minY")]
min_y: Box<super::DoubleConstant>,
#[builder(custom(type = super::DoubleConstant, convert = Box::new))]
#[serde(rename = "maxY")]
max_y: Box<super::DoubleConstant>,
}
impl CartesianBounds {
#[inline]
pub fn min_x(&self) -> &super::DoubleConstant {
&*self.min_x
}
#[inline]
pub fn max_x(&self) -> &super::DoubleConstant {
&*self.max_x
}
#[inline]
pub fn min_y(&self) -> &super::DoubleConstant {
&*self.min_y
}
#[inline]
pub fn max_y(&self) -> &super::DoubleConstant {
&*self.max_y
}
}