pub struct Circle {
pub center: Point,
pub radius: Float,
}Expand description
The representation of a circle.
Fields§
§center: PointCenter of the circle.
radius: FloatRadius of the circle.
Implementations§
Source§impl Circle
impl Circle
Sourcepub fn from_1_point(center: &Point, radius: Float) -> Self
pub fn from_1_point(center: &Point, radius: Float) -> Self
Create circle with the center and radius.
Sourcepub fn from_2_points(p1: &Point, p2: &Point) -> Self
pub fn from_2_points(p1: &Point, p2: &Point) -> Self
Create circle from two points on the diameter.
Sourcepub fn from_3_points(p1: &Point, p2: &Point, p3: &Point) -> Self
pub fn from_3_points(p1: &Point, p2: &Point, p3: &Point) -> Self
Create circle that intersects the 3 points.
Sourcepub fn tex_normal(&self) -> String
pub fn tex_normal(&self) -> String
TeX representation of the circle.
Trait Implementations§
impl Copy for Circle
impl StructuralPartialEq for Circle
Auto Trait Implementations§
impl Freeze for Circle
impl RefUnwindSafe for Circle
impl Send for Circle
impl Sync for Circle
impl Unpin for Circle
impl UnwindSafe for Circle
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