Make tangible.find use center={x,y,z} instead of centerx= etc
This commit is contained in:
@@ -29,8 +29,7 @@
|
||||
#include <limits>
|
||||
#include <iomanip>
|
||||
// #include <cstdint>
|
||||
|
||||
#include "luastack.hpp"
|
||||
#include <cstdarg>
|
||||
#include "spookyv2.hpp"
|
||||
|
||||
namespace sv {
|
||||
@@ -342,7 +341,8 @@ struct NumXYZ {
|
||||
Number x, y, z;
|
||||
NumXYZ() { x=0; y=0; z=0; }
|
||||
NumXYZ(Number ix, Number iy, Number iz) { x=ix; y=iy; z=iz; }
|
||||
void operator =(const NumXYZ &other) { x = other.x; y = other.y; z = other.z; }
|
||||
void operator =(const NumXYZ<double> &other) { x = other.x; y = other.y; z = other.z; }
|
||||
void operator =(const NumXYZ<float> &other) { x = other.x; y = other.y; z = other.z; }
|
||||
void operator =(Number n) { x = n; y = n; z = n; }
|
||||
bool operator ==(const NumXYZ &o) const { return x==o.x && y == o.y && z==o.z; }
|
||||
bool operator !=(const NumXYZ &o) const { return x!=o.x || y != o.y || z!=o.z; }
|
||||
|
||||
Reference in New Issue
Block a user