This shows you the differences between two versions of the page.
Link to this comparison view
zeolite:types:vector3f [2011/01/13 03:29] 127.0.0.1 external edit |
zeolite:types:vector3f [2017/08/31 06:28] (current) |
| ===== Description ===== | | ===== Description ===== |
| | | |
- | vector3f is structure used to describe a 3-dimensional vector in floating-point precision. This data type is more precise than [[zeolite:types:vector3c]] but is less compact. Therefore, vector3f is used for several calculation settings (for greater accuracy), but is //not// used in vector map data (for space reasons). | + | ''vector3f'' is structure used to describe a 3-dimensional vector in floating-point precision. This data type is more precise than [[zeolite:types:vector3c]] but is less compact. Therefore, ''vector3f'' is used for several calculation settings (for greater accuracy), but is //not// used in vector map data (for space reasons). |
| | | |
| Vectors may or may not be normalised. | | Vectors may or may not be normalised. |
| ===== Definition ===== | | ===== Definition ===== |
| | | |
- | //In ExtAPI_defines.h: // | + | //In Zeolite_defines.h: // |
| | | |
| <code="C"> | | <code="C"> |
| ===== Comments ===== | | ===== Comments ===== |
| | | |
- | Although the vector components are named //x//, //y// and //z//, these members may be used to describe any 3-dimensional vector. As an example, the light-mapping algorithm in L3DT uses a vector3f struct to describe light absorption, and the three members represent the absorption half-depths of red, green and blue light. | + | Although the vector components are named //x//, //y// and //z//, these members may be used to describe any 3-dimensional vector. As an example, the light-mapping algorithm in L3DT uses a ''vector3f'' struct to describe light absorption, and the three members represent the absorption half-depths of red, green and blue light. |