Function rin::graphics::path::rect[][src]

pub fn rect<Point>(
    pos: Point,
    w: <Point as NumPnt>::Field,
    h: <Point as NumPnt>::Field
) -> Path2D<Point> where
    Point: FloatPnt + Copy,
    <Point as NumPnt>::Field: RealField,
    <Point as NumPnt>::Field: Float,
    <Point as NumPnt>::Field: NumCast,
    <Point as NumPnt>::Field: Neg,
    <Point as NumPnt>::Coordinates: Neg,
    <<Point as NumPnt>::Coordinates as Neg>::Output == <Point as NumPnt>::Coordinates

Returns a path containing a rectangle