Struct barnes::Square [] [src]

pub struct Square {
    pub x: i64,
    pub y: i64,
    pub lenght: i64,
    pub weight: i64,
    pub point: Option<Point>,
    pub bucket: Option<Vec<Point>>,
    pub region: Option<Box<Region>>,
}

Fields

x: i64 y: i64 lenght: i64 weight: i64 point: Option<Point> bucket: Option<Vec<Point>> region: Option<Box<Region>>

Methods

impl Square
[src]

fn new(x: i64, y: i64, lenght: i64) -> Square

fn is_inside(&self, point: &Point) -> bool

Trait Implementations

impl Debug for Square
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.