Added missing return for Scalar multiplication.
Added Vec3d typedef (Useful later) Removed debug printing
This commit is contained in:
parent
f9dc00712d
commit
e79f88bb9b
2 changed files with 2 additions and 4 deletions
|
@ -112,8 +112,6 @@ void KeyStateManager::mouse_movement(int mouse_x, int mouse_y)
|
|||
current_mouse_delta.y += frame_delta.y;
|
||||
|
||||
last_mouse_position = current_frame;
|
||||
|
||||
std::cout << frame_delta.x << "," << frame_delta.y << std::endl;
|
||||
}
|
||||
|
||||
void KeyStateManager::mouse_click(int mouse_button, int button_state, int mouse_x, int mouse_y)
|
||||
|
|
|
@ -67,6 +67,7 @@ struct CoordinatesVector
|
|||
{
|
||||
result.coordinates[i] = coordinates[i] * scalar;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
CoordinatesVector operator+(const CoordinatesVector<T,N>& op)
|
||||
|
@ -86,7 +87,6 @@ struct CoordinatesVector
|
|||
{
|
||||
result.coordinates[i] = coordinates[i] - op.coordinates[i];
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -209,6 +209,6 @@ typedef Vec2<float> Vec2f;
|
|||
|
||||
typedef Vec3<int> Vec3i;
|
||||
typedef Vec3<float> Vec3f;
|
||||
|
||||
typedef Vec3<double> Vec3d;
|
||||
|
||||
#endif //TESTS_OPENGL_VECTORS_H
|
||||
|
|
Loading…
Add table
Reference in a new issue