Enum ephem::base::linalg::Vec3D [−][src]
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 is_cartesian(self) -> bool
[src]
pub fn is_cylindrical(self) -> bool
[src]
pub fn is_spherical(self) -> bool
[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.
fn add(self, rhs: Self) -> Self
[src]
impl AddAssign<Vec3D> for Vec3D
[src]
fn add_assign(&mut self, rhs: Self)
[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.
fn div(self, rhs: Mat3D) -> Self::Output
[src]
impl Div<f64> for Vec3D
[src]
type Output = Result<Vec3D, Error>
The resulting type after applying the /
operator.
fn div(self, rhs: f64) -> Self::Output
[src]
impl Into<CartesianVec3D> for Vec3D
[src]
fn into(self) -> CartesianVec3D
[src]
impl Into<CylindricalVec3D> for Vec3D
[src]
fn into(self) -> CylindricalVec3D
[src]
impl Into<Option<CartesianVec3D>> for Vec3D
[src]
fn into(self) -> Option<CartesianVec3D>
[src]
impl Into<Option<CylindricalVec3D>> for Vec3D
[src]
fn into(self) -> Option<CylindricalVec3D>
[src]
impl Into<Option<SphericalVec3D>> for Vec3D
[src]
fn into(self) -> Option<SphericalVec3D>
[src]
impl Into<SphericalVec3D> for Vec3D
[src]
fn into(self) -> SphericalVec3D
[src]
impl Mul<Vec3D> for Mat3D
[src]
type Output = Vec3D
The resulting type after applying the *
operator.
fn mul(self, rhs: Vec3D) -> Self::Output
[src]
impl Mul<f64> for Vec3D
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: f64) -> Self
[src]
impl MulAssign<f64> for Vec3D
[src]
fn mul_assign(&mut self, rhs: f64)
[src]
impl Neg for Vec3D
[src]
impl Norm for Vec3D
[src]
impl Sub<Vec3D> for Vec3D
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self
[src]
impl SubAssign<Vec3D> for Vec3D
[src]
fn sub_assign(&mut self, rhs: Self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Vec3D
[src]
impl Send for Vec3D
[src]
impl Sync for Vec3D
[src]
impl Unpin for Vec3D
[src]
impl UnwindSafe for Vec3D
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,