stdspansion/mathextras/rect

Types

FloatRect = object
  x*, y*, w*, h*: float
IntRect = object
  x*, y*, w*, h*: int
SomeRect = FloatRect | IntRect

Funcs

func initFloatRect(x, y, w, h: SomeNumber): FloatRect {...}{.inline.}
func initIntRect(x, y, w, h: SomeNumber): IntRect {...}{.inline.}
func `==`[T: SomeRect](a, b: T): bool {...}{.inline.}