/// A three-dimensional Cartesian vector.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith,
    Copy
)]
#[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 Vec3d {
    #[serde(rename = "x")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    x: f64,
    #[serde(rename = "y")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    y: f64,
    #[serde(rename = "z")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    z: f64,
}
impl Vec3d {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(x: f64, y: f64, z: f64) -> Self {
        Self::builder().x(x).y(y).z(z).build()
    }
    #[inline]
    pub fn x(&self) -> f64 {
        self.x
    }
    #[inline]
    pub fn y(&self) -> f64 {
        self.y
    }
    #[inline]
    pub fn z(&self) -> f64 {
        self.z
    }
}
