Lines Matching refs:Vector2D
14 #include "Vector2D.h"
18 Vector2D::Vector2D() :
22 Vector2D::Vector2D(float x, float y) :
26 Vector2D Vector2D::copy() {
27 Vector2D v(mX, mY);
31 void Vector2D::add(const Vector2D& v) {
36 void Vector2D::sub(const Vector2D& v) {
41 void Vector2D::scale(float s) {
46 float Vector2D::distance(const Vector2D& v) {
52 void Vector2D::normalize() {
59 void Vector2D::limit(float max) {
66 float Vector2D::magnitude() {