23 const float lhs_part = 1.0f - rhs_part;
24 return Point2i(
int(lhs_part *
x + rhs_part * rhs.
x),
25 int(lhs_part *
y + rhs_part * rhs.
y));
29 const float lhs_part = 1.0f - rhs_part;
30 return Point2f(lhs_part *
x + rhs_part * rhs.
x,
31 lhs_part *
y + rhs_part * rhs.
y);
35 const float lhs_part = 1.0f - rhs_part;
36 return Point3i(
int(lhs_part *
x + rhs_part * rhs.
x),
37 int(lhs_part *
y + rhs_part * rhs.
y),
38 int(lhs_part *
z + rhs_part * rhs.
z));
42 const float lhs_part = 1.0f - rhs_part;
43 return Point3f(lhs_part *
x + rhs_part * rhs.
x,
44 lhs_part *
y + rhs_part * rhs.
y,
45 lhs_part *
z + rhs_part * rhs.
z);
Point2i interpolate_to(const float &rhs_part, const Point2i &rhs) const
Get a point inbetween this point and another point of the same type.
Point3i interpolate_to(const float &rhs_part, const Point3i &rhs) const
Get a point inbetween this point and another point of the same type.
std::istream & unserialize(std::istream &is, Color &value)
std::ostream & serialize(std::ostream &os, const Color &value)
A 3D Point represented with floats.
A 3D Point represented with integers.
EGLSurface EGLint EGLint y
EGLSurface EGLint void ** value
GLint GLint GLint GLint z
Point2f interpolate_to(const float &rhs_part, const Point2f &rhs) const
Get a point inbetween this point and another point of the same type.
Point3f interpolate_to(const float &rhs_part, const Point3f &rhs) const
A 2D Point represented with floats.
A 2D Point represented with integers.