BRender Technical Reference Manual:4 Data Structures (Alphabetical Reference):br_fvector2
Next|Prev|Up
The Structure
Members
Arithmetic
Copy/Assign
Initialisation

br_fvector2


The Structure

This is the two ordinate, fractional vector structure. It is not recommended for use, and is only documented here for completeness.

The typedef

(See vector.h for precise declaration and ordering)

br_fraction v[2] Ordinates (0=x, 1=y)

Members

br_fraction v[2]

First and second ordinate. Conventionally, the first ordinate is the x axis component, and the second, the y axis component.

Arithmetic

No approved arithmetic.

Copy/Assign

No approved assignment.

Initialisation

The following macro may be used as a static initialiser.

BR_FVECTOR2(a,b)
Macro expands to {BR_FRACTION(a),BR_FRACTION(b)}.

All other initialisation should use member-wise initialisers.


Generated with
CERN WebMaker