Struct kurbo::CircleSegment[][src]

pub struct CircleSegment {
    pub center: Point,
    pub outer_radius: f64,
    pub inner_radius: f64,
    pub start_angle: f64,
    pub sweep_angle: f64,
}
Expand description

A segment of a circle.

If inner_radius > 0, then the shape will be a doughnut segment.

Fields

center: Point

The center.

outer_radius: f64

The outer radius.

inner_radius: f64

The inner radius.

start_angle: f64

The angle to start drawing the segment (in radians).

sweep_angle: f64

The arc length of the segment (in radians).

Implementations

Create a CircleSegment out of its constituent parts.

Is this circle segment finite?

Is this circle segment NaN?

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

The iterator returned by the path_elements method. Read more

Returns an iterator over this shape expressed as PathEls; that is, as Bézier path elements. Read more

Signed area. Read more

Total length of perimeter.

The winding number of a point. Read more

The smallest rectangle that encloses the shape.

Convert to a Bézier path. Read more

Convert into a Bézier path. Read more

Returns an iterator over this shape expressed as Bézier path segments (PathSegs). Read more

Returns true if the Point is inside this shape. Read more

If the shape is a line, make it available.

If the shape is a rectangle, make it available.

If the shape is a rounded rectangle, make it available.

If the shape is a circle, make it available.

If the shape is stored as a slice of path elements, make that available. Read more

The resulting type after applying the - operator.

Performs the - operation. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.