Skip to main content

nominal_api/conjure/objects/scout/compute/api/
cartesian3d_bounds.rs

1/// Min/max bounds of an XYZ Cartesian plot, inclusive.
2#[derive(
3    Debug,
4    Clone,
5    conjure_object::serde::Serialize,
6    conjure_object::serde::Deserialize,
7    conjure_object::private::DeriveWith
8)]
9#[serde(crate = "conjure_object::serde")]
10#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
11#[conjure_object::private::staged_builder::staged_builder]
12#[builder(crate = conjure_object::private::staged_builder, update, inline)]
13pub struct Cartesian3dBounds {
14    #[builder(custom(type = super::DoubleConstant, convert = Box::new))]
15    #[serde(rename = "minX")]
16    min_x: Box<super::DoubleConstant>,
17    #[builder(custom(type = super::DoubleConstant, convert = Box::new))]
18    #[serde(rename = "maxX")]
19    max_x: Box<super::DoubleConstant>,
20    #[builder(custom(type = super::DoubleConstant, convert = Box::new))]
21    #[serde(rename = "minY")]
22    min_y: Box<super::DoubleConstant>,
23    #[builder(custom(type = super::DoubleConstant, convert = Box::new))]
24    #[serde(rename = "maxY")]
25    max_y: Box<super::DoubleConstant>,
26    #[builder(custom(type = super::DoubleConstant, convert = Box::new))]
27    #[serde(rename = "minZ")]
28    min_z: Box<super::DoubleConstant>,
29    #[builder(custom(type = super::DoubleConstant, convert = Box::new))]
30    #[serde(rename = "maxZ")]
31    max_z: Box<super::DoubleConstant>,
32}
33impl Cartesian3dBounds {
34    #[inline]
35    pub fn min_x(&self) -> &super::DoubleConstant {
36        &*self.min_x
37    }
38    #[inline]
39    pub fn max_x(&self) -> &super::DoubleConstant {
40        &*self.max_x
41    }
42    #[inline]
43    pub fn min_y(&self) -> &super::DoubleConstant {
44        &*self.min_y
45    }
46    #[inline]
47    pub fn max_y(&self) -> &super::DoubleConstant {
48        &*self.max_y
49    }
50    #[inline]
51    pub fn min_z(&self) -> &super::DoubleConstant {
52        &*self.min_z
53    }
54    #[inline]
55    pub fn max_z(&self) -> &super::DoubleConstant {
56        &*self.max_z
57    }
58}