Struct gdnative_visual_script::common::geom::euclid::Radians [−]
pub struct Radians<T> {
pub radians: T,
}An angle in radians
Fields
radians: T
Methods
impl<T> Angle<T>
impl<T> Angle<T>impl<T> Angle<T> where
T: Trig,
impl<T> Angle<T> where
T: Trig, pub fn degrees(deg: T) -> Angle<T>
pub fn degrees(deg: T) -> Angle<T>pub fn to_degrees(self) -> T
pub fn to_degrees(self) -> Timpl<T> Angle<T> where
T: Sub<T, Output = T> + Rem<T, Output = T> + Add<T, Output = T> + Zero + FloatConst + PartialOrd<T> + Copy,
impl<T> Angle<T> where
T: Sub<T, Output = T> + Rem<T, Output = T> + Add<T, Output = T> + Zero + FloatConst + PartialOrd<T> + Copy, pub fn positive(&self) -> Angle<T>
pub fn positive(&self) -> Angle<T>Returns this angle in the [0..2*PI[ range.
pub fn signed(&self) -> Angle<T>
pub fn signed(&self) -> Angle<T>Returns this angle in the ]-PI..PI] range.
impl<T> Angle<T> where
T: Float,
impl<T> Angle<T> where
T: Float, impl<T> Angle<T> where
T: Zero,
impl<T> Angle<T> where
T: Zero, impl<T> Angle<T> where
T: FloatConst + Add<T, Output = T>,
impl<T> Angle<T> where
T: FloatConst + Add<T, Output = T>, pub fn pi() -> Angle<T>
pub fn pi() -> Angle<T>pub fn two_pi() -> Angle<T>
pub fn two_pi() -> Angle<T>pub fn frac_pi_2() -> Angle<T>
pub fn frac_pi_2() -> Angle<T>pub fn frac_pi_3() -> Angle<T>
pub fn frac_pi_3() -> Angle<T>pub fn frac_pi_4() -> Angle<T>
pub fn frac_pi_4() -> Angle<T>Trait Implementations
impl<T> Neg for Angle<T> where
T: Neg<Output = T>,
impl<T> Neg for Angle<T> where
T: Neg<Output = T>, type Output = Angle<T>
The resulting type after applying the - operator.
fn neg(self) -> Angle<T>
fn neg(self) -> Angle<T>Performs the unary - operation.
impl<T> Copy for Angle<T> where
T: Copy,
impl<T> Copy for Angle<T> where
T: Copy, impl<T> DivAssign<T> for Angle<T> where
T: DivAssign<T> + Clone,
impl<T> DivAssign<T> for Angle<T> where
T: DivAssign<T> + Clone, fn div_assign(&mut self, factor: T)
fn div_assign(&mut self, factor: T)Performs the /= operation.
impl<T> Mul<T> for Angle<T> where
T: Mul<T, Output = T> + Clone,
impl<T> Mul<T> for Angle<T> where
T: Mul<T, Output = T> + Clone, type Output = Angle<T>
The resulting type after applying the * operator.
fn mul(self, factor: T) -> Angle<T>
fn mul(self, factor: T) -> Angle<T>Performs the * operation.
impl<T> Debug for Angle<T> where
T: Debug,
impl<T> Debug for Angle<T> where
T: Debug, fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<T> SubAssign<Angle<T>> for Angle<T> where
T: SubAssign<T> + Clone,
impl<T> SubAssign<Angle<T>> for Angle<T> where
T: SubAssign<T> + Clone, fn sub_assign(&mut self, other: Angle<T>)
fn sub_assign(&mut self, other: Angle<T>)Performs the -= operation.
impl<T> MulAssign<T> for Angle<T> where
T: MulAssign<T> + Clone,
impl<T> MulAssign<T> for Angle<T> where
T: MulAssign<T> + Clone, fn mul_assign(&mut self, factor: T)
fn mul_assign(&mut self, factor: T)Performs the *= operation.
impl<T> Clone for Angle<T> where
T: Clone,
impl<T> Clone for Angle<T> where
T: Clone, fn clone(&self) -> Angle<T>
fn clone(&self) -> Angle<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<T> Sub<Angle<T>> for Angle<T> where
T: Sub<T, Output = T> + Clone,
impl<T> Sub<Angle<T>> for Angle<T> where
T: Sub<T, Output = T> + Clone, type Output = Angle<T>
The resulting type after applying the - operator.
fn sub(self, other: Angle<T>) -> <Angle<T> as Sub<Angle<T>>>::Output
fn sub(self, other: Angle<T>) -> <Angle<T> as Sub<Angle<T>>>::OutputPerforms the - operation.
impl<T> Hash for Angle<T> where
T: Hash,
impl<T> Hash for Angle<T> where
T: Hash, fn hash<__HT>(&self, state: &mut __HT) where
__HT: Hasher,
fn hash<__HT>(&self, state: &mut __HT) where
__HT: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl<T> PartialOrd<Angle<T>> for Angle<T> where
T: PartialOrd<T>,
impl<T> PartialOrd<Angle<T>> for Angle<T> where
T: PartialOrd<T>, fn partial_cmp(&self, other: &Angle<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Angle<T>) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Angle<T>) -> bool
fn lt(&self, other: &Angle<T>) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Angle<T>) -> bool
fn le(&self, other: &Angle<T>) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Angle<T>) -> bool
fn gt(&self, other: &Angle<T>) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Angle<T>) -> bool
fn ge(&self, other: &Angle<T>) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<T> Add<Angle<T>> for Angle<T> where
T: Add<T, Output = T> + Clone,
impl<T> Add<Angle<T>> for Angle<T> where
T: Add<T, Output = T> + Clone, type Output = Angle<T>
The resulting type after applying the + operator.
fn add(self, other: Angle<T>) -> Angle<T>
fn add(self, other: Angle<T>) -> Angle<T>Performs the + operation.
impl<T> Div<T> for Angle<T> where
T: Div<T, Output = T> + Clone,
impl<T> Div<T> for Angle<T> where
T: Div<T, Output = T> + Clone, type Output = Angle<T>
The resulting type after applying the / operator.
fn div(self, factor: T) -> Angle<T>
fn div(self, factor: T) -> Angle<T>Performs the / operation.
impl<T> Div<Angle<T>> for Angle<T> where
T: Div<T, Output = T> + Clone,
impl<T> Div<Angle<T>> for Angle<T> where
T: Div<T, Output = T> + Clone, type Output = T
The resulting type after applying the / operator.
fn div(self, other: Angle<T>) -> T
fn div(self, other: Angle<T>) -> TPerforms the / operation.
impl<T> AddAssign<Angle<T>> for Angle<T> where
T: AddAssign<T> + Clone,
impl<T> AddAssign<Angle<T>> for Angle<T> where
T: AddAssign<T> + Clone, fn add_assign(&mut self, other: Angle<T>)
fn add_assign(&mut self, other: Angle<T>)Performs the += operation.
impl<T> PartialEq<Angle<T>> for Angle<T> where
T: PartialEq<T>,
impl<T> PartialEq<Angle<T>> for Angle<T> where
T: PartialEq<T>, fn eq(&self, other: &Angle<T>) -> bool
fn eq(&self, other: &Angle<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Angle<T>) -> bool
fn ne(&self, other: &Angle<T>) -> boolThis method tests for !=.
impl<T> Eq for Angle<T> where
T: Eq,
impl<T> Eq for Angle<T> where
T: Eq,