29# warning This header is deprecated. Please use <FTGL/ftgl.h> from now.
75 inline FTPoint(
const FT_Vector& ft_vector)
77 values[0] = ft_vector.x;
78 values[1] = ft_vector.y;
99 values[0] += point.values[0];
100 values[1] += point.values[1];
101 values[2] += point.values[2];
115 temp.values[0] = values[0] + point.values[0];
116 temp.values[1] = values[1] + point.values[1];
117 temp.values[2] = values[2] + point.values[2];
130 values[0] -= point.values[0];
131 values[1] -= point.values[1];
132 values[2] -= point.values[2];
146 temp.values[0] = values[0] - point.values[0];
147 temp.values[1] = values[1] - point.values[1];
148 temp.values[2] = values[2] - point.values[2];
159 inline FTPoint operator * (
double multiplier)
const
162 temp.values[0] = values[0] * multiplier;
163 temp.values[1] = values[1] * multiplier;
164 temp.values[2] = values[2] * multiplier;
179 return point * multiplier;
192 return a.values[0] * b.values[0]
193 + a.values[1] * b.values[1]
194 + a.values[2] * b.values[2];
207 temp.values[0] = values[1] * point.values[2]
208 - values[2] * point.values[1];
209 temp.values[1] = values[2] * point.values[0]
210 - values[0] * point.values[2];
211 temp.values[2] = values[0] * point.values[1]
212 - values[1] * point.values[0];
FTPoint class is a basic 3-dimensional point or vector.
FTPoint(const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUBLE z=0)
Constructor.
FTPoint()
Default constructor.
FTGL_DOUBLE X() const
Getters.
FTPoint Normalise()
Normalise a point's coordinates.
FTPoint(const FT_Vector &ft_vector)
Constructor.
void X(FTGL_DOUBLE x)
Setters.