Module aabb

Procs

proc initAABB(pos, size: Vector3): AABB {.
inline, raises: [], tags: []
.}
  Source Edit
proc `$`(self: AABB): string {.
inline, raises: [], tags: []
.}
  Source Edit
proc area(self: AABB): float32 {.
inline, raises: [], tags: []
.}
  Source Edit
proc hasNoArea(self: AABB): bool {.
inline, raises: [], tags: []
.}
  Source Edit
proc hasNoSurface(self: AABB): bool {.
inline, raises: [], tags: []
.}
  Source Edit
proc intersects(self, other: AABB): bool {.
inline, raises: [], tags: []
.}
  Source Edit
proc encloses(self, other: AABB): bool {.
inline, raises: [], tags: []
.}
  Source Edit
proc merge(self, other: AABB): AABB {.
inline, raises: [], tags: []
.}
  Source Edit
proc intersection(self, other: AABB): AABB {.
inline, raises: [], tags: []
.}
  Source Edit
proc intersectsPlane(self: AABB; plane: Plane): bool {.
inline, raises: [], tags: []
.}
  Source Edit
proc intersectsSegment(self: AABB; start, to: Vector3): bool {.
inline, raises: [], tags: []
.}
  Source Edit
proc contains(self: AABB; point: Vector3): bool {.
inline, raises: [], tags: []
.}
  Source Edit
proc getSupport(self: AABB; dir: Vector3): Vector3 {.
inline, raises: [], tags: []
.}
  Source Edit
proc getLongestAxis(self: AABB): Vector3 {.
inline, raises: [], tags: []
.}
  Source Edit
proc getLongestAxisIndex(self: AABB): cint {.
inline, raises: [], tags: []
.}
  Source Edit
proc getLongestAxisSize(self: AABB): float32 {.
inline, raises: [], tags: []
.}
  Source Edit
proc getShortestAxis(self: AABB): Vector3 {.
inline, raises: [], tags: []
.}
  Source Edit
proc getShortestAxisIndex(self: AABB): cint {.
inline, raises: [], tags: []
.}
  Source Edit
proc getShortestAxisSize(self: AABB): float32 {.
inline, raises: [], tags: []
.}
  Source Edit
proc expand(self: AABB; toPoint: Vector3): AABB {.
inline, raises: [], tags: []
.}
  Source Edit
proc grow(self: AABB; by: float32): AABB {.
inline, raises: [], tags: []
.}
  Source Edit
proc getEndpoint(self: AABB; idx: cint): Vector3 {.
inline, raises: [], tags: []
.}
  Source Edit
proc `==`(a, b: AABB): bool {.
inline, raises: [], tags: []
.}
  Source Edit