L3DT documentation
Large 3D terrain generator

This is an old revision of the document!


vector3c

Description

vector3sc 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 ExtAPI_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.1294889353.txt.gz · Last modified: 2017/08/31 05:40 (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