#[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 for ArcSeconds<T>
impl<T: Float + AbsDiffEq> AbsDiffEq for ArcSeconds<T>
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§fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
A test for equality that uses the absolute difference to compute the approximate
equality of two numbers.
Source§impl<U, T> Add<U> for ArcSeconds<T>
impl<U, T> Add<U> for ArcSeconds<T>
Source§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>
impl<U, T> AddAssign<U> for ArcSeconds<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.
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>
Source§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>
impl<T, U> FromAngle<U> for ArcSeconds<T>
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>
Source§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>
Source§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 for ArcSeconds<T>
impl<T: PartialEq> PartialEq for ArcSeconds<T>
Source§impl<T: PartialOrd> PartialOrd for ArcSeconds<T>
impl<T: PartialOrd> PartialOrd for ArcSeconds<T>
Source§impl<T: Float + RelativeEq> RelativeEq for ArcSeconds<T>
impl<T: Float + RelativeEq> RelativeEq for ArcSeconds<T>
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 for ArcSeconds<T>
impl<T: Rem<T, Output = T>> Rem for ArcSeconds<T>
Source§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 for ArcSeconds<T>
impl<T: RemAssign> RemAssign 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>
impl<U, T> Sub<U> for ArcSeconds<T>
Source§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>
impl<U, T> SubAssign<U> for ArcSeconds<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 for ArcSeconds<T>
impl<T: Float + UlpsEq> UlpsEq for ArcSeconds<T>
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> Freeze for ArcSeconds<T>where
T: Freeze,
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> IntoAngle<U> for T
impl<T, U> IntoAngle<U> for T
type OutputScalar = <T as Angle>::Scalar
Source§fn into_angle(self) -> U
fn into_angle(self) -> U
Construct an angle from
self
.