L3DT documentation
Large 3D terrain generator

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
 
zeolite/types/vector3c.txt · Last modified: 2013/08/21 17:20 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki