Go to the documentation of this file.
41 {
return !(p==*
this); }
44 {
x += v;
y += v;
z += v;
return *
this; }
46 {
x -= v;
y -= v;
z -= v;
return *
this; }
48 {
x *= v;
y *= v;
z *= v;
return *
this; }
50 {
x /= v;
y /= v;
z /= v;
return *
this; }
53 {
x+=i.
x;
y+=i.
y;
z+=i.
z;
return *
this; }
55 {
x-=i.
x;
y-=i.
y;
z-=i.
z;
return *
this; }
58 {
point p = *
this; p*=i;
return p; }
60 {
point p = *
this; p+=i;
return p; }
62 {
point p = *
this; p-=i;
return p; }
66 {
return sqrtf(
x *
x +
y *
y +
z *
z); }
68 {
return (
x *
x +
y *
y +
z *
z); }
81 {
return a.
x * b.
x + a.
y*b.
y + a.
z*b.
z; }
86 result.
x = this->y*val.
z - this->z*val.
y;
87 result.
y = this->z*val.
x - this->x*val.
z;
88 result.
z = this->x*val.
y - this->y*val.
x;
98 rect(
float l,
float t,
float r,
float b)
125 top =
top*(1-percentage)+val.
top*percentage;
134 { o <<
"(" << r.
x <<
", " << r.
y <<
", " << r.
z <<
")";
return o; }
void DrawLine(point start, point end, float lineWidth, rgbColor c)
A color; r/g/b are between 0...1.
float squaredLength() const
std::vector< textInfo > backgroundText
void FillSquare(point p, float radius, rgbColor c)
double min(double a, double b)
point operator+(const point &i) const
point operator-(const point &i) const
void SetNumViewports(uint8_t v)
void FillTriangle(point p1, point p2, point p3, rgbColor c)
void FillLineSegments(const std::vector< point > &points, float lineWidth, rgbColor c)
data(shapeInfo d, tDrawClass t, uint8_t view)
std::vector< data > backgroundDrawCommands
point(float x=0, float y=0, float z=0)
point & operator/=(const float v)
void SetViewport(uint8_t v)
point & operator-=(const point &i)
void FillNGon(point p, float radius, int sides, float rotation, rgbColor c)
point operator*(float i) const
data(drawInfo d, tDrawClass t, uint8_t view)
rect & operator*=(const point &val)
bool operator!=(const point &p) const
void FrameNGon(point p, float radius, float width, int sides, float rotation, rgbColor c)
bool PointInRect(const point &p, const rect &r)
bool BackgroundNeedsRedraw() const
static float Dot(point a, point b)
point & operator-=(const float v)
point operator*(const point &val) const
std::vector< data > drawCommands
point & operator*=(const float v)
point & operator+=(const float v)
void FrameSquare(point p, float radius, rgbColor c, float lineWidth)
void FrameCircle(rect r, rgbColor c, float lineWidth)
std::vector< textInfo > text
void DrawArrow(point start, point end, float lineWidth, rgbColor c)
data(lineInfo l, uint8_t view)
void FillCircle(rect r, rgbColor c)
void FrameRect(rect r, rgbColor c, float lineWidth)
rect(point center, float rad)
void FrameTriangle(point p1, point p2, point p3, float lineWidth, rgbColor c)
std::vector< segments > lineSegments
std::ostream & operator<<(std::ostream &o, const rect &r)
void DrawLineSegments(const std::vector< point > &points, float lineWidth, rgbColor c)
rect & operator|=(const rect &val)
rect(float l, float t, float r, float b)
point & operator+=(const point &i)
void DrawText(const char *text, point location, rgbColor c, float height, const char *typeface=0)
data(triangleInfo t, tDrawClass d, uint8_t view)
void lerp(const rect &val, float percentage)
std::vector< point > points
bool fequal(double a, double b, double tolerance=TOLERANCE)
void FillRect(rect r, rgbColor c)
std::vector< segments > backgroundLineSegments
bool operator==(const point &p) const