[−][src]Trait pathfinder::Shape
Provides the functions to create a generic shape.
Required methods
fn new() -> Self
fn area(&self, size: u32) -> Vec<Coordinate>
Implementors
impl Shape for Circle
[src]
impl Shape for Circle
fn new() -> Circle | [src] |
fn area(&self, size: u32) -> Vec<Coordinate> | [src] |
Returns all coordinates that the shape occupies. Algorithm is derived from: https://en.wikipedia.org/wiki/Midpoint_circle_algorithm
impl Shape for Square
[src]
impl Shape for Square
fn new() -> Square | [src] |
fn area(&self, size: u32) -> Vec<Coordinate> | [src] |
Returns all coordinates that the shape occupies. Assume that 0 0 is the center of the node.
impl Shape for Triangle
[src]
impl Shape for Triangle