I was just starting to write a class for vectors and noticed that my normalize method appears as blue. It doesn't seem to cause an error. When is it problematic to use text that Processing highlights?
Here is the class so far (far from done):
- class Vec {
- float x, y, z;
- Vec() {
- x = 0;
- y = 0;
- z = 0;
- }
- Vec(float inX, float inY, float inZ) {
- x = inX;
- y = inY;
- z = inZ;
- }
- void normalize() {
- float mag = sqrt(x*x+y*y+z*z);
- x /= mag;
- y /= mag;
- z /= mag;
- }
- }
Edit: The text that is highlighted is normalize
1