Tuple Fields
0: Point<N>
1: N
Implementations
sourceimpl<N: Num> Circle<N>
impl<N: Num> Circle<N>
pub fn new_zero_value() -> Self
pub fn with_radius(centre_point: Point<N>, radius: N) -> Self
pub fn with_diameter(centre_point: Point<N>, diameter: N) -> Self
pub fn move_xy(&mut self, xy: Point<N>)
pub fn move_x(&mut self, x: N)
pub fn move_y(&mut self, y: N)
pub fn width(&self) -> N
pub fn height(&self) -> N
pub fn radius(&self) -> N
pub fn radius_sqrd(&self) -> N
pub fn to_size(&self) -> Size<N>
pub fn centre(&self) -> Point<N>
pub fn mult_radius(&mut self, n: N)
pub fn div_radius(&mut self, n: N)
pub fn add_radius(&mut self, n: N)
pub fn sub_radius(&mut self, n: N)
pub fn abs(&self) -> Self
pub fn min(self, other: Self) -> Self
pub fn max(self, other: Self) -> Self
pub fn overlaps(&self, other: Self) -> bool
pub fn contains_point(&self, point: Point<N>) -> bool
pub fn iter_circumference_points(
self,
num_points: usize
) -> CircleCircumferencePointsIteratorⓘNotable traits for CircleCircumferencePointsIteratorimpl Iterator for CircleCircumferencePointsIterator type Item = Point<f32>;
pub fn iter_circumference_lines(
self,
num_lines: usize
) -> CircleCircumferenceLinesIteratorⓘNotable traits for CircleCircumferenceLinesIteratorimpl Iterator for CircleCircumferenceLinesIterator type Item = Line<f32>;
pub fn rotate_around_zero(self, rotation: f32) -> Self
pub fn rotate_around_point(self, rotation: f32, point: Point<N>) -> Self
pub fn overlaps_line(self, other: Line<N>) -> bool
Trait Implementations
sourceimpl<N: Num> AddAssign<Point<N>> for Circle<N>
impl<N: Num> AddAssign<Point<N>> for Circle<N>
sourcefn add_assign(&mut self, other: Point<N>)
fn add_assign(&mut self, other: Point<N>)
Performs the +=
operation. Read more
sourceimpl<N: Num> SubAssign<Point<N>> for Circle<N>
impl<N: Num> SubAssign<Point<N>> for Circle<N>
sourcefn sub_assign(&mut self, other: Point<N>)
fn sub_assign(&mut self, other: Point<N>)
Performs the -=
operation. Read more
sourceimpl<O: Num, N: Num + ToRounded<O>> ToRounded<Circle<O>> for Circle<N>
impl<O: Num, N: Num + ToRounded<O>> ToRounded<Circle<O>> for Circle<N>
sourcefn to_rounded(self) -> Circle<O>
fn to_rounded(self) -> Circle<O>
Returns the value in the new type, but clamped.
impl<N: Copy + Num> Copy for Circle<N>
Auto Trait Implementations
impl<N> RefUnwindSafe for Circle<N> where
N: RefUnwindSafe,
impl<N> Send for Circle<N> where
N: Send,
impl<N> Sync for Circle<N> where
N: Sync,
impl<N> Unpin for Circle<N> where
N: Unpin,
impl<N> UnwindSafe for Circle<N> where
N: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more