mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
/* Copyright 2003-2005 ROBLOX Corporation, All Rights Reserved */
|
||||
#pragma once
|
||||
|
||||
template<class T>
|
||||
class Vector6
|
||||
{
|
||||
private:
|
||||
T data[6];
|
||||
|
||||
public:
|
||||
Vector6() {;} // no initialization
|
||||
Vector6(const T& setAll)
|
||||
{
|
||||
data[0] = data[1] = data[2] = data[3] = data[4] = data[5] = setAll;
|
||||
}
|
||||
// Vector6(const Vector6<T>& _other) // use bit copy
|
||||
// Vector6& operator= (const Vector6<t>& _other); // use bit copy
|
||||
// virtual ~Template(); // no destructor
|
||||
|
||||
const T& operator[](int i) const
|
||||
{
|
||||
return data[i];
|
||||
}
|
||||
|
||||
T& operator[](int i)
|
||||
{
|
||||
return data[i];
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user