mirror of
https://github.com/thug1src/thug.git
synced 2025-01-22 05:43:47 +00:00
38 lines
796 B
C++
38 lines
796 B
C++
|
///////////////////////////////////////////////////////////////////////////////////////
|
||
|
//
|
||
|
// vecpair.cpp KSH 17 Oct 2001
|
||
|
//
|
||
|
// Just defines the constructors and pool statics.
|
||
|
//
|
||
|
///////////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
#include <gel/scripting/vecpair.h>
|
||
|
|
||
|
DefinePoolableClass(Script::CVector);
|
||
|
DefinePoolableClass(Script::CPair);
|
||
|
|
||
|
namespace Script
|
||
|
{
|
||
|
|
||
|
CVector::CVector()
|
||
|
{
|
||
|
// Initialise everything. CVector is not derived from CClass so we don't get
|
||
|
// the auro-zeroing.
|
||
|
mX=mY=mZ=0.0f;
|
||
|
}
|
||
|
|
||
|
// Note: No destructor needed.
|
||
|
|
||
|
|
||
|
CPair::CPair()
|
||
|
{
|
||
|
// Initialise everything. CPair is not derived from CClass so we don't get
|
||
|
// the auro-zeroing.
|
||
|
mX=mY=0.0f;
|
||
|
}
|
||
|
|
||
|
// Note: No destructor needed.
|
||
|
|
||
|
} // namespace Script
|
||
|
|