Panda3D

Loading...
Searching...
No Matches
luse.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file luse.h
10 * @author drose
11 * @date 1999-01-13
12 */
13
14#ifndef LUSE_H
15#define LUSE_H
16
17/*
18 * This file defines a number of vector-based classes that are designed for
19 * specific uses. These all inherit from LVecBase[234][fd], which is the base
20 * of all linear algebra vectors. LPoint[234][fd] This should be used to
21 * represent a specific point in space. It inherits most properties from
22 * LVecBase. LVector[234][fd] This should be used to represent a vector, or a
23 * distance between two points in space. The distinction between LPoint and
24 * LVector is worth emphasizing. They differ in some subtle typing behavior
25 * (vector - vector = vector, point + vector = point, point - point = vector)
26 * and also in the way they are transformed when multiplied by a matrix (a
27 * point gets the translation component of the matrix, while the vector does
28 * not). Also, vector has length() and normalize() functions defined for it,
29 * while point does not. LPoint and LVector should be used whenever the
30 * concept of "point" or "vector" applies. If neither applies--for instance,
31 * if you are storing a plane equation or some such nonsense--use the base
32 * class, LVecBase. This file also typedefs the following: Vertex[fd]
33 * Normal[fd] TexCoord[fd] Color[fd] RGBColor[fd] These classes are typedefs
34 * of LPoint or LVector, as appropriate, and are intended to store a specific
35 * kind of rendering attribute. (Color is a four-component color; RGBColor is
36 * three-component.)
37 */
38
39// All of the guts is actually defined in this other header file, which is not
40// intended to be included directly by the user.
41#include "aa_luse.h"
42
43#endif
aa_luse.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.