Struct angular_units::ArcSeconds
source · #[repr(transparent)]pub struct ArcSeconds<T>(pub T);
Expand description
An angular quantity measured in arc seconds, which are 1/60th of an arc minute.
Tuple Fields§
§0: T
Trait Implementations§
source§impl<T: Float + AbsDiffEq> AbsDiffEq<ArcSeconds<T>> for ArcSeconds<T>where
T::Epsilon: Clone,
impl<T: Float + AbsDiffEq> AbsDiffEq<ArcSeconds<T>> for ArcSeconds<T>where
T::Epsilon: Clone,
source§fn default_epsilon() -> Self::Epsilon
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
source§impl<U, T> Add<U> for ArcSeconds<T>where
T: Float + Add<T, Output = T>,
U: IntoAngle<ArcSeconds<T>, OutputScalar = T>,
impl<U, T> Add<U> for ArcSeconds<T>where
T: Float + Add<T, Output = T>,
U: IntoAngle<ArcSeconds<T>, OutputScalar = T>,
§type Output = ArcSeconds<T>
type Output = ArcSeconds<T>
The resulting type after applying the
+
operator.source§fn add(self, rhs: U) -> ArcSeconds<T>
fn add(self, rhs: U) -> ArcSeconds<T>
Performs the
+
operation. Read moresource§impl<U, T> AddAssign<U> for ArcSeconds<T>where
T: Float + AddAssign<T>,
U: IntoAngle<ArcSeconds<T>, OutputScalar = T>,
impl<U, T> AddAssign<U> for ArcSeconds<T>where
T: Float + AddAssign<T>,
U: IntoAngle<ArcSeconds<T>, OutputScalar = T>,
source§fn add_assign(&mut self, rhs: U)
fn add_assign(&mut self, rhs: U)
Performs the
+=
operation. Read moresource§impl<T: Float> Angle for ArcSeconds<T>
impl<T: Float> Angle for ArcSeconds<T>
source§fn new(value: T) -> ArcSeconds<T>
fn new(value: T) -> ArcSeconds<T>
Construct a new angle. Read more
source§fn set_scalar(&mut self, value: T)
fn set_scalar(&mut self, value: T)
Set the internal scalar value of the angle.
source§fn is_normalized(&self) -> bool
fn is_normalized(&self) -> bool
Whether the angle is in the standard domain.
source§fn normalize(self) -> ArcSeconds<T>
fn normalize(self) -> ArcSeconds<T>
Normalize the angle, wrapping it back into the standard domain. Read more
source§fn asin(value: T) -> ArcSeconds<T>
fn asin(value: T) -> ArcSeconds<T>
Compute the arcsine of a value, returning an angle.
source§fn acos(value: T) -> ArcSeconds<T>
fn acos(value: T) -> ArcSeconds<T>
Compute the arccosine of a value, returning an angle.
source§fn atan(value: T) -> ArcSeconds<T>
fn atan(value: T) -> ArcSeconds<T>
Compute the arctangent of a value, returning an angle.
source§fn atan2(y: T, x: T) -> ArcSeconds<T>
fn atan2(y: T, x: T) -> ArcSeconds<T>
Compute the arctangent of a value, using information from
the numerator and denominator in order to increase the domain. Read more
source§fn quarter_turn() -> Self
fn quarter_turn() -> Self
Return one quarter of a full rotation in some unit.
source§impl<T: Clone> Clone for ArcSeconds<T>
impl<T: Clone> Clone for ArcSeconds<T>
source§fn clone(&self) -> ArcSeconds<T>
fn clone(&self) -> ArcSeconds<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for ArcSeconds<T>
impl<T: Debug> Debug for ArcSeconds<T>
source§impl<T: Zero> Default for ArcSeconds<T>
impl<T: Zero> Default for ArcSeconds<T>
source§fn default() -> ArcSeconds<T>
fn default() -> ArcSeconds<T>
Returns the “default value” for a type. Read more
source§impl<T: Display> Display for ArcSeconds<T>
impl<T: Display> Display for ArcSeconds<T>
source§impl<T: Div<T, Output = T>> Div<T> for ArcSeconds<T>
impl<T: Div<T, Output = T>> Div<T> for ArcSeconds<T>
§type Output = ArcSeconds<T>
type Output = ArcSeconds<T>
The resulting type after applying the
/
operator.source§fn div(self, rhs: T) -> ArcSeconds<T>
fn div(self, rhs: T) -> ArcSeconds<T>
Performs the
/
operation. Read moresource§impl<T: DivAssign<T>> DivAssign<T> for ArcSeconds<T>
impl<T: DivAssign<T>> DivAssign<T> for ArcSeconds<T>
source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/=
operation. Read moresource§impl<T: Float> From<ArcSeconds<T>> for ArcMinutes<T>
impl<T: Float> From<ArcSeconds<T>> for ArcMinutes<T>
source§fn from(from: ArcSeconds<T>) -> ArcMinutes<T>
fn from(from: ArcSeconds<T>) -> ArcMinutes<T>
Converts to this type from the input type.
source§impl<T: Float> From<ArcSeconds<T>> for Deg<T>
impl<T: Float> From<ArcSeconds<T>> for Deg<T>
source§fn from(from: ArcSeconds<T>) -> Deg<T>
fn from(from: ArcSeconds<T>) -> Deg<T>
Converts to this type from the input type.
source§impl<T, U> FromAngle<U> for ArcSeconds<T>where
U: Angle<Scalar = T>,
T: Float,
impl<T, U> FromAngle<U> for ArcSeconds<T>where
U: Angle<Scalar = T>,
T: Float,
source§fn from_angle(from: U) -> ArcSeconds<T>
fn from_angle(from: U) -> ArcSeconds<T>
Construct
Self
by converting a T
.source§impl<T: Hash> Hash for ArcSeconds<T>
impl<T: Hash> Hash for ArcSeconds<T>
source§impl<T: Float> Interpolate for ArcSeconds<T>
impl<T: Float> Interpolate for ArcSeconds<T>
source§impl<T: Mul<T, Output = T>> Mul<T> for ArcSeconds<T>
impl<T: Mul<T, Output = T>> Mul<T> for ArcSeconds<T>
§type Output = ArcSeconds<T>
type Output = ArcSeconds<T>
The resulting type after applying the
*
operator.source§fn mul(self, rhs: T) -> ArcSeconds<T>
fn mul(self, rhs: T) -> ArcSeconds<T>
Performs the
*
operation. Read moresource§impl<T: MulAssign<T>> MulAssign<T> for ArcSeconds<T>
impl<T: MulAssign<T>> MulAssign<T> for ArcSeconds<T>
source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*=
operation. Read moresource§impl<T: Neg<Output = T>> Neg for ArcSeconds<T>
impl<T: Neg<Output = T>> Neg for ArcSeconds<T>
§type Output = ArcSeconds<T>
type Output = ArcSeconds<T>
The resulting type after applying the
-
operator.source§fn neg(self) -> ArcSeconds<T>
fn neg(self) -> ArcSeconds<T>
Performs the unary
-
operation. Read moresource§impl<T: PartialEq> PartialEq<ArcSeconds<T>> for ArcSeconds<T>
impl<T: PartialEq> PartialEq<ArcSeconds<T>> for ArcSeconds<T>
source§fn eq(&self, other: &ArcSeconds<T>) -> bool
fn eq(&self, other: &ArcSeconds<T>) -> bool
source§impl<T: PartialOrd> PartialOrd<ArcSeconds<T>> for ArcSeconds<T>
impl<T: PartialOrd> PartialOrd<ArcSeconds<T>> for ArcSeconds<T>
source§fn partial_cmp(&self, other: &ArcSeconds<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &ArcSeconds<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T: Float + RelativeEq> RelativeEq<ArcSeconds<T>> for ArcSeconds<T>where
T::Epsilon: Clone,
impl<T: Float + RelativeEq> RelativeEq<ArcSeconds<T>> for ArcSeconds<T>where
T::Epsilon: Clone,
source§fn default_max_relative() -> Self::Epsilon
fn default_max_relative() -> Self::Epsilon
The default relative tolerance for testing values that are far-apart. Read more
source§impl<T: Rem<T, Output = T>> Rem<ArcSeconds<T>> for ArcSeconds<T>
impl<T: Rem<T, Output = T>> Rem<ArcSeconds<T>> for ArcSeconds<T>
§type Output = ArcSeconds<T>
type Output = ArcSeconds<T>
The resulting type after applying the
%
operator.source§fn rem(self, rhs: ArcSeconds<T>) -> ArcSeconds<T>
fn rem(self, rhs: ArcSeconds<T>) -> ArcSeconds<T>
Performs the
%
operation. Read moresource§impl<T: RemAssign> RemAssign<ArcSeconds<T>> for ArcSeconds<T>
impl<T: RemAssign> RemAssign<ArcSeconds<T>> for ArcSeconds<T>
source§fn rem_assign(&mut self, rhs: ArcSeconds<T>)
fn rem_assign(&mut self, rhs: ArcSeconds<T>)
Performs the
%=
operation. Read moresource§impl<U, T> Sub<U> for ArcSeconds<T>where
T: Float + Sub<T, Output = T>,
U: IntoAngle<ArcSeconds<T>, OutputScalar = T>,
impl<U, T> Sub<U> for ArcSeconds<T>where
T: Float + Sub<T, Output = T>,
U: IntoAngle<ArcSeconds<T>, OutputScalar = T>,
§type Output = ArcSeconds<T>
type Output = ArcSeconds<T>
The resulting type after applying the
-
operator.source§fn sub(self, rhs: U) -> ArcSeconds<T>
fn sub(self, rhs: U) -> ArcSeconds<T>
Performs the
-
operation. Read moresource§impl<U, T> SubAssign<U> for ArcSeconds<T>where
T: Float + SubAssign<T>,
U: IntoAngle<ArcSeconds<T>, OutputScalar = T>,
impl<U, T> SubAssign<U> for ArcSeconds<T>where
T: Float + SubAssign<T>,
U: IntoAngle<ArcSeconds<T>, OutputScalar = T>,
source§fn sub_assign(&mut self, rhs: U)
fn sub_assign(&mut self, rhs: U)
Performs the
-=
operation. Read moresource§impl<T: Float + UlpsEq> UlpsEq<ArcSeconds<T>> for ArcSeconds<T>where
T::Epsilon: Clone,
impl<T: Float + UlpsEq> UlpsEq<ArcSeconds<T>> for ArcSeconds<T>where
T::Epsilon: Clone,
source§impl<T: Float> Zero for ArcSeconds<T>
impl<T: Float> Zero for ArcSeconds<T>
impl<T: Copy> Copy for ArcSeconds<T>
impl<T> StructuralPartialEq for ArcSeconds<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ArcSeconds<T>where
T: RefUnwindSafe,
impl<T> Send for ArcSeconds<T>where
T: Send,
impl<T> Sync for ArcSeconds<T>where
T: Sync,
impl<T> Unpin for ArcSeconds<T>where
T: Unpin,
impl<T> UnwindSafe for ArcSeconds<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T, U> IntoAngle<U> for Twhere
U: Angle<Scalar = <T as Angle>::Scalar> + FromAngle<T>,
T: Angle,
impl<T, U> IntoAngle<U> for Twhere
U: Angle<Scalar = <T as Angle>::Scalar> + FromAngle<T>,
T: Angle,
type OutputScalar = <T as Angle>::Scalar
source§fn into_angle(self) -> U
fn into_angle(self) -> U
Construct an angle from
self
.