affn 0.5.0

Affine geometry primitives: strongly-typed coordinate systems, reference frames, and centers for scientific computing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Runtime conic-family classification derived from eccentricity.

#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};

/// High-level conic classification derived from eccentricity.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub enum ConicKind {
    /// Elliptic orbit or conic (`0 <= e < 1`).
    Elliptic,
    /// Parabolic orbit or conic (`e == 1`).
    Parabolic,
    /// Hyperbolic orbit or conic (`e > 1`).
    Hyperbolic,
}