Module vector2

Procs

proc vec2(): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc vec2(x, y: float32): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `$`(self: Vector2): string {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc hash(self: Vector2): Hash {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `+`(self, other: Vector2): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `+=`(self: var Vector2; other: Vector2) {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `-`(self, other: Vector2): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `-=`(self: var Vector2; other: Vector2) {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `*`(self, other: Vector2): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `*=`(self: var Vector2; other: Vector2) {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `*`(self: Vector2; scalar: float32): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `*`(scalar: float32; v: Vector2): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `*=`(self: var Vector2; scalar: float32) {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `/`(self, other: Vector2): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `/=`(self: var Vector2; other: Vector2) {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `/`(self: Vector2; scalar: float32): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `/=`(self: var Vector2; scalar: float32) {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `==`(self, other: Vector2): bool {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `<`(self, other: Vector2): bool {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `>`(self, other: Vector2): bool {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc `-`(self: Vector2): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc length(self: Vector2): float32 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc lengthSquared(self: Vector2): float32 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc normalize(self: var Vector2) {.
inline, raises: [], tags: []
.}
  Source Edit
proc normalized(self: Vector2): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc angle(self: Vector2): float32 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc isNormalized(self: Vector2): bool {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc distanceTo(self, to: Vector2): float32 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc distanceSquaredTo(self, to: Vector2): float32 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc dot(a, b: Vector2): float32 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc cross(a, b: Vector2): float32 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc cross(self: Vector2; scalar: float32): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc angleTo(self, to: Vector2): float32 {.
noinit, raises: [], tags: []
.}
  Source Edit
proc angleToPoint(self, to: Vector2): float32 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc floor(self: Vector2): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc planeProject(self: Vector2; d: float32; vec: Vector2): Vector2 {.
noinit, raises: [], tags: []
.}
  Source Edit
proc project(self, other: Vector2): Vector2 {.
noinit, raises: [], tags: []
.}
  Source Edit
proc lerp(self, b: Vector2; t: float32): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc cubicInterpolate(self, b, preA, postB: Vector2; t: float32): Vector2 {.
noinit, raises: [], tags: []
.}
  Source Edit
proc setRotation(self: var Vector2; radians: float32) {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc rotated(self: Vector2; phi: float32): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc tangent(self: Vector2): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc snapped(self: Vector2; by: Vector2): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc aspect(self: Vector2): float32 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc slide(self, n: Vector2): Vector2 {.
noinit, raises: [], tags: []
.}
  Source Edit
proc reflect(self, n: Vector2): Vector2 {.
noinit, raises: [], tags: []
.}
  Source Edit
proc bounce(self, n: Vector2): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc abs(self: Vector2): Vector2 {.
inline, noinit, raises: [], tags: []
.}
  Source Edit
proc clamped(self: Vector2; length: float32): Vector2 {.
noinit, raises: [], tags: []
.}
  Source Edit