mud++0.35/etc/
mud++0.35/etc/guilds/
mud++0.35/help/propert/
mud++0.35/mudC/
mud++0.35/player/
mud++0.35/src/interface/
mud++0.35/src/os/cygwin32/
mud++0.35/src/os/win32/
mud++0.35/src/os/win32/bcppbuilder/
mud++0.35/src/osaddon/
mud++0.35/src/util/
/*
....[@@@..[@@@..............[@.................. MUD++ is a written from
....[@..[@..[@..[@..[@..[@@@@@....[@......[@.... scratch multi-user swords and
....[@..[@..[@..[@..[@..[@..[@..[@@@@@..[@@@@@.. sorcery game written in C++.
....[@......[@..[@..[@..[@..[@....[@......[@.... This server is an ongoing
....[@......[@..[@@@@@..[@@@@@.................. development project.  All 
................................................ contributions are welcome. 
....Copyright(C).1995.Melvin.Smith.............. Enjoy. 
------------------------------------------------------------------------------
Melvin Smith (aka Fusion)         msmith@hom.net 
MUD++ development mailing list    mudpp@van.ml.org
------------------------------------------------------------------------------
vector.cc
*/

#include "config.h"
#include "vector.h"

bool Vector::operator == ( const Vector & vec )
{
	if( x != vec.x )
		return false;
	else if( y != vec.y )
		return false;
	else if( z != vec.z )
		return false;
	return true;
}

void Vector::operator += ( const Vector & vec )
{
	x += vec.x;
	y += vec.y;
	z += vec.z;
}

void Vector::operator -= ( const Vector & vec )
{
	x -= vec.x;
	y -= vec.y;
	z -= vec.z;
}

Vector Vector::operator + ( const Vector & vec )
{
	Vector temp = *this;
	temp.x += vec.x;
	temp.y += vec.y;
	temp.z += vec.z;
	return temp;
}

Vector Vector::operator - ( const Vector & vec )
{
	Vector temp = *this;
	temp.x -= vec.x;
	temp.y -= vec.y;
	temp.z -= vec.z;
	return temp;
}