mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
31 lines
467 B
C++
31 lines
467 B
C++
#ifndef _AndroidMathUtility_Vector_h_
|
|
#define _AndroidMathUtility_Vector_h_
|
|
|
|
#include <string>
|
|
|
|
namespace AndroidMathUtility {
|
|
|
|
class Vector {
|
|
public:
|
|
Vector();
|
|
Vector(int size);
|
|
Vector(const Vector& vec);
|
|
virtual ~Vector();
|
|
|
|
float Get(int id) const;
|
|
int GetSize() const;
|
|
|
|
void Set(int id, float value);
|
|
|
|
void MultipleByScalar(float scalar);
|
|
|
|
std::string ToString() const;
|
|
|
|
private:
|
|
float* data;
|
|
int size;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|