#include <matrix.h>
Public Member Functions | |
| UV () | |
| Default constructor. Initializes the coordinate to (0,0). | |
| UV (float s) | |
| Constructor initializing all elements to the given value. | |
| UV (float _u, float _v) | |
| Constructor initializing the coordinate to (u,v). | |
| virtual | ~UV () |
| Destructor. Does nothing. | |
| UV | operator+ (const UV &c) const |
| Addition of two uv coordinates. | |
| UV | operator * (float s) |
| Multiplication of uv coordinate by scalar. | |
Public Attributes | |
| float | u |
| First texture coordinate (u). | |
| float | v |
| Second texture coordinate (v). | |
Friends | |
| UV | operator * (float s, const UV &c) |
| Multiplication of scalar by uv coordinate. | |
1.4.4