/// Computes the two-argument arctangent atan2(y, x) using signs to determine the quadrant.
#[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 Atan2 {
    #[builder(custom(type = super::NumericSeries, convert = Box::new))]
    #[serde(rename = "y")]
    y: Box<super::NumericSeries>,
    #[builder(custom(type = super::NumericSeries, convert = Box::new))]
    #[serde(rename = "x")]
    x: Box<super::NumericSeries>,
}
impl Atan2 {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(y: super::NumericSeries, x: super::NumericSeries) -> Self {
        Self::builder().y(y).x(x).build()
    }
    /// Y-coordinate series.
    #[inline]
    pub fn y(&self) -> &super::NumericSeries {
        &*self.y
    }
    /// X-coordinate series.
    #[inline]
    pub fn x(&self) -> &super::NumericSeries {
        &*self.x
    }
}
