Struct rin::math::Rad [−][src]
pub struct Rad<N>(pub N);
Trait Implementations
impl<N> AddAssign<Rad<N>> for Rad<N> where
N: AddAssign<N>,
[src]
impl<N> AddAssign<Rad<N>> for Rad<N> where
N: AddAssign<N>,
[src]pub fn add_assign(&mut self, other: Rad<N>)
[src]
impl<N> Angle<N> for Rad<N> where
N: Num,
[src]
impl<N> Angle<N> for Rad<N> where
N: Num,
[src]pub fn to_rad(self) -> Rad<N>
[src]
pub fn to_deg(self) -> Deg<N> where
N: NumCast,
[src]
N: NumCast,
pub fn pi() -> Rad<N> where
N: NumCast,
[src]
N: NumCast,
pub fn two_pi() -> Rad<N> where
N: NumCast,
[src]
N: NumCast,
pub fn half_pi() -> Rad<N> where
N: NumCast,
[src]
N: NumCast,
pub fn wrap(self) -> Rad<N> where
N: NumCast + Clone,
[src]
N: NumCast + Clone,
pub fn max(self, other: Rad<N>) -> Rad<N> where
N: PartialOrd<N> + NumCast + Clone,
[src]
N: PartialOrd<N> + NumCast + Clone,
pub fn min(self, other: Rad<N>) -> Rad<N> where
N: PartialOrd<N> + NumCast + Clone,
[src]
N: PartialOrd<N> + NumCast + Clone,
pub fn value(self) -> N
[src]
pub fn as_value(&self) -> &N
[src]
pub fn sin(self) -> N where
N: Float,
[src]
N: Float,
pub fn cos(self) -> N where
N: Float,
[src]
N: Float,
pub fn tan(self) -> N where
N: Float,
[src]
N: Float,
pub fn sin_cos(self) -> (N, N) where
N: Float,
[src]
N: Float,
pub fn abs(self) -> Rad<N> where
N: Signed,
[src]
N: Signed,
impl<'de, N> Deserialize<'de> for Rad<N> where
N: Deserialize<'de>,
[src]
impl<'de, N> Deserialize<'de> for Rad<N> where
N: Deserialize<'de>,
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Rad<N>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Rad<N>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<N> DivAssign<N> for Rad<N> where
N: DivAssign<N>,
[src]
impl<N> DivAssign<N> for Rad<N> where
N: DivAssign<N>,
[src]pub fn div_assign(&mut self, other: N)
[src]
impl<N> DivAssign<Rad<N>> for Rad<N> where
N: DivAssign<N>,
[src]
impl<N> DivAssign<Rad<N>> for Rad<N> where
N: DivAssign<N>,
[src]pub fn div_assign(&mut self, other: Rad<N>)
[src]
impl<N> FromPrimitive for Rad<N> where
N: FromPrimitive,
[src]
impl<N> FromPrimitive for Rad<N> where
N: FromPrimitive,
[src]pub fn from_i64(n: i64) -> Option<Rad<N>>
[src]
pub fn from_u64(n: u64) -> Option<Rad<N>>
[src]
pub fn from_isize(n: isize) -> Option<Self>
[src]
pub fn from_i8(n: i8) -> Option<Self>
[src]
pub fn from_i16(n: i16) -> Option<Self>
[src]
pub fn from_i32(n: i32) -> Option<Self>
[src]
pub fn from_i128(n: i128) -> Option<Self>
[src]
pub fn from_usize(n: usize) -> Option<Self>
[src]
pub fn from_u8(n: u8) -> Option<Self>
[src]
pub fn from_u16(n: u16) -> Option<Self>
[src]
pub fn from_u32(n: u32) -> Option<Self>
[src]
pub fn from_u128(n: u128) -> Option<Self>
[src]
pub fn from_f32(n: f32) -> Option<Self>
[src]
pub fn from_f64(n: f64) -> Option<Self>
[src]
impl IntoUniformValueRef for Rad<f32>
[src]
impl IntoUniformValueRef for Rad<f32>
[src]pub fn into_uniform_value_ref(&self) -> UniformValueRef<'_>
[src]
impl<N> MulAssign<N> for Rad<N> where
N: MulAssign<N>,
[src]
impl<N> MulAssign<N> for Rad<N> where
N: MulAssign<N>,
[src]pub fn mul_assign(&mut self, other: N)
[src]
impl<N> MulAssign<Rad<N>> for Rad<N> where
N: MulAssign<N>,
[src]
impl<N> MulAssign<Rad<N>> for Rad<N> where
N: MulAssign<N>,
[src]pub fn mul_assign(&mut self, other: Rad<N>)
[src]
impl<N> PartialOrd<Rad<N>> for Rad<N> where
N: PartialOrd<N> + Num + Clone + NumCast,
[src]
impl<N> PartialOrd<Rad<N>> for Rad<N> where
N: PartialOrd<N> + Num + Clone + NumCast,
[src]impl<N> Serialize for Rad<N> where
N: Serialize,
[src]
impl<N> Serialize for Rad<N> where
N: Serialize,
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<N> SubAssign<Rad<N>> for Rad<N> where
N: SubAssign<N>,
[src]
impl<N> SubAssign<Rad<N>> for Rad<N> where
N: SubAssign<N>,
[src]pub fn sub_assign(&mut self, other: Rad<N>)
[src]
impl<T, S> SubsetOf<Rad<T>> for Rad<S> where
T: Copy,
S: SubsetOf<T>,
[src]
impl<T, S> SubsetOf<Rad<T>> for Rad<S> where
T: Copy,
S: SubsetOf<T>,
[src]pub fn to_superset(&self) -> Rad<T>
[src]
pub fn from_superset_unchecked(element: &Rad<T>) -> Rad<S>
[src]
pub fn is_in_subset(element: &Rad<T>) -> bool
[src]
pub fn from_superset(element: &T) -> Option<Self>
[src]
impl<N> ToPrimitive for Rad<N> where
N: ToPrimitive,
[src]
impl<N> ToPrimitive for Rad<N> where
N: ToPrimitive,
[src]pub fn to_i64(&self) -> Option<i64>
[src]
pub fn to_u64(&self) -> Option<u64>
[src]
pub fn to_isize(&self) -> Option<isize>
[src]
pub fn to_i8(&self) -> Option<i8>
[src]
pub fn to_i16(&self) -> Option<i16>
[src]
pub fn to_i32(&self) -> Option<i32>
[src]
pub fn to_i128(&self) -> Option<i128>
[src]
pub fn to_usize(&self) -> Option<usize>
[src]
pub fn to_u8(&self) -> Option<u8>
[src]
pub fn to_u16(&self) -> Option<u16>
[src]
pub fn to_u32(&self) -> Option<u32>
[src]
pub fn to_u128(&self) -> Option<u128>
[src]
pub fn to_f32(&self) -> Option<f32>
[src]
pub fn to_f64(&self) -> Option<f64>
[src]
impl<N> Copy for Rad<N> where
N: Copy,
[src]
N: Copy,
impl<N> Eq for Rad<N> where
N: Eq + PartialEq<N> + Num + Clone + NumCast,
[src]
N: Eq + PartialEq<N> + Num + Clone + NumCast,
Auto Trait Implementations
impl<N> RefUnwindSafe for Rad<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for Rad<N> where
N: Send,
N: Send,
impl<N> Sync for Rad<N> where
N: Sync,
N: Sync,
impl<N> Unpin for Rad<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for Rad<N> where
N: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> CallHasher for T where
T: Hash,
[src]
impl<T> CallHasher for T where
T: Hash,
[src]impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> WriteStd140 for T where
T: Std140,
[src]
impl<T> WriteStd140 for T where
T: Std140,
[src]pub fn write_std140(&self, data: &mut Data)
[src]
impl<T, Right> ClosedAdd<Right> for T where
T: Add<Right, Output = T> + AddAssign<Right>,
[src]
T: Add<Right, Output = T> + AddAssign<Right>,
impl<T, Right> ClosedAdd<Right> for T where
T: Add<Right, Output = T> + AddAssign<Right>,
[src]
T: Add<Right, Output = T> + AddAssign<Right>,
impl<T, Right> ClosedDiv<Right> for T where
T: Div<Right, Output = T> + DivAssign<Right>,
[src]
T: Div<Right, Output = T> + DivAssign<Right>,
impl<T, Right> ClosedDiv<Right> for T where
T: Div<Right, Output = T> + DivAssign<Right>,
[src]
T: Div<Right, Output = T> + DivAssign<Right>,
impl<T, Right> ClosedMul<Right> for T where
T: Mul<Right, Output = T> + MulAssign<Right>,
[src]
T: Mul<Right, Output = T> + MulAssign<Right>,
impl<T, Right> ClosedMul<Right> for T where
T: Mul<Right, Output = T> + MulAssign<Right>,
[src]
T: Mul<Right, Output = T> + MulAssign<Right>,
impl<T> ClosedNeg for T where
T: Neg<Output = T>,
[src]
T: Neg<Output = T>,
impl<T> ClosedNeg for T where
T: Neg<Output = T>,
[src]
T: Neg<Output = T>,
impl<T, Right> ClosedSub<Right> for T where
T: Sub<Right, Output = T> + SubAssign<Right>,
[src]
T: Sub<Right, Output = T> + SubAssign<Right>,
impl<T, Right> ClosedSub<Right> for T where
T: Sub<Right, Output = T> + SubAssign<Right>,
[src]
T: Sub<Right, Output = T> + SubAssign<Right>,
impl<T> CollisionObjectHandle for T where
T: 'static + Copy + Hash + PartialEq<T> + Eq + Send + Sync,
[src]
T: 'static + Copy + Hash + PartialEq<T> + Eq + Send + Sync,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<M> Measure for M where
M: Debug + PartialOrd<M> + Add<M, Output = M> + Default + Clone,
[src]
M: Debug + PartialOrd<M> + Add<M, Output = M> + Default + Clone,
impl<N> NodeTrait for N where
N: Copy + Ord + Hash,
[src]
N: Copy + Ord + Hash,
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,