Table of Contents

Namespace OmegaEngine.Foundation.Geometry

Data structures describing geometric constructs like grids, vectors and planes.

These data structures are used throughout OmegaEngine and AlphaFramework for terrain storage (ByteGrid, NibbleGrid, ByteVector4Grid) and for floating-point coordinate arithmetic. They are rendering-agnostic so they can be used in game-world code without taking a dependency on DirectX or SlimDX.

Classes

ByteGrid

A 2D grid of byte values that can be stored in grayscale PNG files.

ByteVector4Grid

A 2D grid of ByteVector4 values that can be stored in ARGB PNG files.

ExpandableRectangleArray<T>

Builds a rectangle array that can grow in any direction.

Grid<T>

A 2D grid of values that can be stored in PNG files.

NibbleGrid

A 2D grid of nibble (half a byte / 4 bits) values that can be stored in 16 colors PNG files.

VectorMath

Math helpers related to vectors.

Structs

ByteVector4

Defines a four-component vector with byte accuracy.

DoublePlane

Defines a plane in three dimensions with double distance accuracy.

DoubleVector3

Defines a three-component vector with double accuracy.

Quadrangle

A 2D polygon consisting of four points.

Vector2Ray

Defines a ray in two dimensions, specified by an origin and a direction.