Types
FloatPoint2D = object x*, y*: float
IntPoint2D = object x*, y*: int
SomePoint2D = FloatPoint2D | IntPoint2D
Funcs
func initFloatPoint2d(x, y: SomeNumber): FloatPoint2D {...}{.inline.}
func initIntPoint2d(x, y: SomeNumber): IntPoint2D {...}{.inline.}
func add[T: SomePoint2D](a, b: T): T {...}{.inline.}
func sub[T: SomePoint2D](a, b: T): T {...}{.inline.}
func `div`[T: SomePoint2D](a, b: T): FloatPoint2D {...}{.inline.}
func mul[T: SomePoint2D](a, b: T): T {...}{.inline.}
func `==`[T: SomePoint2D](a, b: T): bool {...}{.inline.}