[][src]Enum ephem::base::linalg::Vec3D

pub enum Vec3D {
    Cartesian(CartesianVec3D),
    Cylindrical(CylindricalVec3D),
    Spherical(SphericalVec3D),
}

Variants

Cartesian(CartesianVec3D)
Cylindrical(CylindricalVec3D)
Spherical(SphericalVec3D)

Implementations

impl Vec3D[src]

pub fn cartesian(x: f64, y: f64, z: f64) -> Vec3D[src]

pub fn cylindrical(rho: f64, phi: f64, z: f64) -> Result<Vec3D, Error>[src]

pub fn spherical(r: f64, phi: f64, theta: f64) -> Result<Vec3D, Error>[src]

pub fn zero() -> Vec3D[src]

pub fn unit_x() -> Vec3D[src]

pub fn unit_y() -> Vec3D[src]

pub fn unit_z() -> Vec3D[src]

pub fn unit(phi: f64, theta: f64) -> Result<Vec3D, Error>[src]

pub fn to_cartesian(self) -> Vec3D[src]

pub fn to_cylindrical(self) -> Vec3D[src]

pub fn to_spherical(self) -> Vec3D[src]

pub fn dot(self, rhs: Self) -> f64[src]

pub fn cross(self, rhs: Self) -> Vec3D[src]

Trait Implementations

impl Add<Vec3D> for Vec3D[src]

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<Vec3D> for Vec3D[src]

impl Clone for Vec3D[src]

impl Copy for Vec3D[src]

impl Debug for Vec3D[src]

impl Default for Vec3D[src]

impl Div<Mat3D> for Vec3D[src]

type Output = Result<Vec3D, Error>

The resulting type after applying the / operator.

impl Div<f64> for Vec3D[src]

type Output = Result<Vec3D, Error>

The resulting type after applying the / operator.

impl Into<CartesianVec3D> for Vec3D[src]

impl Into<CylindricalVec3D> for Vec3D[src]

impl Into<SphericalVec3D> for Vec3D[src]

impl Mul<Vec3D> for Mat3D[src]

type Output = Vec3D

The resulting type after applying the * operator.

impl Mul<f64> for Vec3D[src]

type Output = Self

The resulting type after applying the * operator.

impl MulAssign<f64> for Vec3D[src]

impl Neg for Vec3D[src]

type Output = Self

The resulting type after applying the - operator.

impl Norm for Vec3D[src]

impl Sub<Vec3D> for Vec3D[src]

type Output = Self

The resulting type after applying the - operator.

impl SubAssign<Vec3D> for Vec3D[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.