Files
kraken/KREngine/KREngine/Classes/KRVector2.cpp
kearwood f2845b2456 Implemented texture scale and offset material parameters
--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4024
2012-03-30 00:54:44 +00:00

33 lines
515 B
C++

//
// KRVector2.cpp
// KREngine
//
// Created by Kearwood Gilbert on 12-03-22.
// Copyright (c) 2012 Kearwood Software. All rights reserved.
//
#include <iostream>
#include "KRVector2.h"
KRVector2::KRVector2() {
x = 0.0;
y = 0.0;
}
KRVector2::KRVector2(float X, float Y) {
x = X;
y = Y;
}
KRVector2::~KRVector2() {
}
bool operator== (KRVector2 &v1, KRVector2 &v2) {
return v1.x == v2.x && v1.y == v2.y;
}
bool operator!= (KRVector2 &v1, KRVector2 &v2) {
return !(v1 == v2);
}