class quadf

Declared in: Primitive++.h
Library: libVector++.so
Derived from: primitivef << BArchivable

Description

The quadf class is an implementation of a quadrilateral in 3 dimensions. It does not contain quadrilateral-correcting measures (i.e. to ensure coplanarity, convexity, and no-crossing). These will be implemented in a future class known as "superquad".

Constructors

quadf(); quadf(vectorf, vectorf, vectorf, vectorf); quadf(quadf *)
The quadf data type is assigned to its four vectors, respectively. Passing it () results in an assignment of the unit square resting from (0,0) to (1,1). Passing it a pointer to another quad will copy the other quad into it.

quadf(BMessage *)
Takes a BMessage with quadrilateral data and creates a quadf with the passed data.

Members

void transform(basisf) and
void translate(vectorf)
do as they are described in primitivef.

void draw()
rests unimplemented.

status_t Archive(BMessage *, bool)
Archived information:
NAME TYPE VALUE
GType B_STRING_TYPE "QUAD"
Coords B_RAW_TYPE {dump of coordinates}
class B_STRING_TYPE quadf

static BArchivable *Instantiate(BMessage *)
Takes a BMessage and returns the BArchivable-cast pointer to the new quadf. The calling procedure now owns the quadf.

vectorf vertices[4]
The array of vectors comprising the quadrilateral.