Expand description

This module contains basic geometry structs that implement ViewElement, such as Line or Triangle

Structs§

  • The Line takes two Vec2Ds and returns a line between those vertices when blit to a View
  • The Polygon takes a vec of Vec2Ds and returns a polygon with those vertices when blit to a View
  • The Rect takes a position and size, and returns a rectangle at that position with the given width and size when blit to a View
  • The Triangle takes three Vec2Ds and returns a triangle with those vertices when blit to a View