Module ludomath::vec2d [] [src]

Functions and other utilities for vector math.

The conventions of this library are: The positive X-axis points rightward, and the positive Y-axis points upward. Angles are 0 at (1, 0), increasing counter-clockwise.

Many methods have a _mut variant, these are the assignment operators. That is, if the standard variant is +, the _mut variant is +=.

Structs

Point

Represents a cartesian point in the 2D euclidean plane.

Rotation

Represents a 2D rotation or direction.

Transform

Represents an affine transformation of the plane.

Vector

Represents a cartesian vector in the 2D euclidean plane.

Traits

MaybeInvertible

A trait for possibly-invertible transformation.

Transformation

A trait describing the transformation of some type T.