pub struct Cos(/* private fields */);Expand description
Cos of an angle
Implementations§
Source§impl Cos
impl Cos
Sourcepub fn from_theta(theta: Theta) -> Self
pub fn from_theta(theta: Theta) -> Self
Calculates cos from theta
§Examples
use ac_power::trig::{Theta, Cos};
let theta = Theta::from_degrees(180.0);
let cos = Cos::from_theta(theta);Sourcepub fn from_degrees(degrees: f32) -> Self
pub fn from_degrees(degrees: f32) -> Self
Sourcepub fn from_radians(radians: f32) -> Self
pub fn from_radians(radians: f32) -> Self
Calculates cos from radians
§Examples
use ac_power::trig::Cos;
let cos = Cos::from_radians(core::f32::consts::PI/4.0);Trait Implementations§
Source§impl MulAssign<Cos> for Current
impl MulAssign<Cos> for Current
Source§fn mul_assign(&mut self, other: Cos)
fn mul_assign(&mut self, other: Cos)
Performs the
*= operation. Read moreSource§impl MulAssign<Cos> for Impedance
impl MulAssign<Cos> for Impedance
Source§fn mul_assign(&mut self, other: Cos)
fn mul_assign(&mut self, other: Cos)
Performs the
*= operation. Read moreSource§impl MulAssign<Cos> for Power
impl MulAssign<Cos> for Power
Source§fn mul_assign(&mut self, other: Cos)
fn mul_assign(&mut self, other: Cos)
Performs the
*= operation. Read moreSource§impl MulAssign<Cos> for Voltage
impl MulAssign<Cos> for Voltage
Source§fn mul_assign(&mut self, other: Cos)
fn mul_assign(&mut self, other: Cos)
Performs the
*= operation. Read moreimpl Copy for Cos
impl StructuralPartialEq for Cos
Auto Trait Implementations§
impl Freeze for Cos
impl RefUnwindSafe for Cos
impl Send for Cos
impl Sync for Cos
impl Unpin for Cos
impl UnwindSafe for Cos
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