Table of Contents

vector3c

Description

vector3c is structure used to describe a 3-dimensional vector in signed 8-bit integer ('char') precision. This data type is less precise than vector3f but more compact, and is therefore used in vector map data (e.g. MAP_TerrainNormals.)

Each vector component has the range -128…127, and vectors may or may not be normalised.

Definition

In Zeolite_defines.h:

typedef struct {
  signed char x;
  signed char y;
  signed char z;
} vector3c;

Member data

Member name Type Comments
x signed char The vector component in the x-axis.
y signed char The vector component in the y-axis.
z signed char The vector component in the z-axis.

Type identifiers

VarID VarID_vector3c
MapID MAP_TerrainNormals