Function rust_3d::factory_2d::rectangle [] [src]

pub fn rectangle<P>(
    center: &P,
    width: Positive,
    height: Positive
) -> PointCloud2D<P> where
    P: IsBuildable2D

Creates a 2D rectangle from given center width and height