OxMVector2Array Class

This class holds an array of single-precision 2D vectors suitable for use as 2D vertex positions, UV coordinates, etc. The advantage of this class over a standard REALbasic Array is fast and automatic conversion to Ptr for use in declare statements. The advantage over a standard Memoryblock is a concise API that only deals with one data type, and efficient bulk-math operations.

Important: Some OxMVector2Array methods accept or return OxMVector2 instances, but keep in mind that OxMVector2 uses double-precision floats while this class uses single-precision. This shouldn't cause problems under normal circumstances but it's a detail to be aware of, as the values of vectors passed into and out of this class may not exactly match their original values.

Note: This class may resemble a Memoryblock in some respects but keep in mind that it lacks a LittleEndian flag, and the data accessors do not perform any sort of byte swapping. The internal data storage always uses the current platform's native endianness, however, a Copy method that accepts a Memoryblock is provided that will byte-swap the Memoryblock's data when necessary.

Constructors

Expand All | Collapse All

Constants

Expand All | Collapse All

Properties

Expand All | Collapse All

Methods

Expand All | Collapse All