pub struct Angle<T>(/* private fields */);Implementations§
Source§impl<T> Angle<T>
impl<T> Angle<T>
pub fn from_radians(value: T) -> Self
pub fn from_degrees<U>(value: U) -> Selfwhere
U: DegToRad<Output = T>,
pub fn degrees(self) -> T
pub fn cos(self) -> <T as Cos>::Outputwhere
T: Cos,
pub fn sin(self) -> <T as Sin>::Outputwhere
T: Sin,
pub fn signed_distance(self, other: Angle<T>) -> DeltaAngle<T>
pub fn is_contained_in(&self, range: Range<Self>) -> bool
Trait Implementations§
Source§impl<T, U> AddAssign<DeltaAngle<U>> for Angle<T>where
T: AddAssign<U>,
impl<T, U> AddAssign<DeltaAngle<U>> for Angle<T>where
T: AddAssign<U>,
Source§fn add_assign(&mut self, rhs: DeltaAngle<U>)
fn add_assign(&mut self, rhs: DeltaAngle<U>)
Performs the
+= operation. Read moreSource§impl<'de, T> Deserialize<'de> for Angle<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Angle<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: Copy> Copy for Angle<T>
impl<T> StructuralPartialEq for Angle<T>
Auto Trait Implementations§
impl<T> Freeze for Angle<T>where
T: Freeze,
impl<T> RefUnwindSafe for Angle<T>where
T: RefUnwindSafe,
impl<T> Send for Angle<T>where
T: Send,
impl<T> Sync for Angle<T>where
T: Sync,
impl<T> Unpin for Angle<T>where
T: Unpin,
impl<T> UnsafeUnpin for Angle<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Angle<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