Expand description
A graphics.
Fields
center: Point
Center of the graphics.
radius: Float
Radius of the graphics.
Implementations
sourceimpl Circle
impl Circle
sourcepub fn unit(x: Float, y: Float) -> Self
pub fn unit(x: Float, y: Float) -> Self
Create a new graphics with the given center and radius.
sourcepub fn from_1_point(center: &Point, radius: Float) -> Self
pub fn from_1_point(center: &Point, radius: Float) -> Self
Create graphics 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 graphics 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 graphics that intersects the 3 points.
sourcepub fn tex_normal(&self) -> String
pub fn tex_normal(&self) -> String
TeX representation of the graphics.
Trait Implementations
impl Copy for Circle
impl StructuralPartialEq for Circle
Auto Trait Implementations
impl RefUnwindSafe for Circle
impl Send for Circle
impl Sync for Circle
impl Unpin for Circle
impl UnwindSafe for Circle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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