ae.utils.geometry

2D geometry math stuff

Members

Enums

ShapeKind
enum ShapeKind
Undocumented in source.

Functions

circle
auto circle(T args)
Undocumented in source. Be warned that the author may not have intended to support it.
dist
auto dist(T x, T y)
Undocumented in source. Be warned that the author may not have intended to support it.
dist2
auto dist2(T x, T y)
Undocumented in source. Be warned that the author may not have intended to support it.
intersects
bool intersects(Shape!T a, Shape!T b)
Undocumented in source. Be warned that the author may not have intended to support it.
intersects
bool intersects(Circle!T circle, Rect!T rect)
Undocumented in source. Be warned that the author may not have intended to support it.
point
auto point(T args)
Undocumented in source. Be warned that the author may not have intended to support it.
rect
auto rect(T args)
Undocumented in source. Be warned that the author may not have intended to support it.
shape
auto shape(T shape)
Undocumented in source. Be warned that the author may not have intended to support it.
sqrtx
auto sqrtx(T x)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

TAU
enum TAU;
Undocumented in source.

Structs

Circle
struct Circle(T)
Undocumented in source.
Point
struct Point(T)
Undocumented in source.
Rect
struct Rect(T)
Undocumented in source.
Shape
struct Shape(T)
Undocumented in source.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <vladimir@thecybershadow.net>