[−][src]Struct arcs::primitives::Arc
Methods
impl Arc
[src]
pub fn from_centre_radius(
centre: Vector,
radius: f64,
start_angle: f64,
sweep_angle: f64
) -> Self
[src]
centre: Vector,
radius: f64,
start_angle: f64,
sweep_angle: f64
) -> Self
pub fn from_three_points(
start: Vector,
middle: Vector,
end: Vector
) -> Option<Self>
[src]
start: Vector,
middle: Vector,
end: Vector
) -> Option<Self>
pub const fn centre(self) -> Vector
[src]
pub const fn radius(self) -> f64
[src]
pub const fn start_angle(self) -> f64
[src]
pub const fn sweep_angle(self) -> f64
[src]
pub fn end_angle(self) -> f64
[src]
pub fn is_anticlockwise(self) -> bool
[src]
pub fn is_clockwise(self) -> bool
[src]
pub fn start(self) -> Vector
[src]
pub fn end(self) -> Vector
[src]
pub fn point_at(self, angle: f64) -> Vector
[src]
pub fn contains_angle(self, angle: f64) -> bool
[src]
pub fn is_minor_arc(&self) -> bool
[src]
pub fn is_major_arc(&self) -> bool
[src]
Trait Implementations
impl Approximate for Arc
[src]
type Iter = ApproximatedArc
fn approximate(&self, tolerance: f64) -> Self::Iter
[src]
impl Bounded for Arc
[src]
fn bounding_box(&self) -> BoundingBox
[src]
impl Clone for Arc
[src]
impl Copy for Arc
[src]
impl Debug for Arc
[src]
impl Length for Arc
[src]
fn length(&self) -> f64
[src]
Calculates the length of an Arc
.
let radius = 50.0; let arc = Arc::from_centre_radius(Vector::zero(), radius, 0.0, 2.0 * PI); assert_eq!(arc.length(), 2.0 * radius * PI);
impl PartialEq<Arc> for Arc
[src]
impl Scale for Arc
[src]
fn scale(&mut self, factor: f64, base: Vector)
[src]
fn scaled(&self, factor: f64, base: Vector) -> Self where
Self: Sized + Clone,
[src]
Self: Sized + Clone,
impl StructuralPartialEq for Arc
[src]
impl Translate for Arc
[src]
Auto Trait Implementations
impl RefUnwindSafe for Arc
impl Send for Arc
impl Sync for Arc
impl Unpin for Arc
impl UnwindSafe for Arc
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> RoundFrom<T> for T
[src]
fn round_from(x: T) -> T
[src]
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
[src]
U: RoundFrom<T>,
fn round_into(self) -> U
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,