7 #ifndef BALL_VIEW_DATATYPE_VERTEX2_H
8 #define BALL_VIEW_DATATYPE_VERTEX2_H
14 #ifndef BALL_MATHS_VECTOR3_H
77 void set(
const Vertex2& vertex);
99 void setVertex1(
const Vector3& v);
104 void setVertex1(
const float x,
const float y,
const float z);
114 const Vector3& getVertex1()
const;
121 void getVertex1(
Vector3& v)
const;
126 void getVertex1(
float& x,
float& y,
float& z)
const;
142 void setVertex1Address(
const Vector3& v);
151 void setDefaultVertex1Address();
157 Vector3* getVertex1Address()
const;
163 void setVertex2(
const Vector3& v);
168 void setVertex2(
const float x,
const float y,
const float z);
179 const Vector3& getVertex2()
const;
187 void getVertex2(
Vector3& v)
const;
192 void getVertex2(
float& x,
float& y,
float& z)
const;
208 void setVertex2Address(
const Vector3& v);
219 void setDefaultVertex2Address();
225 Vector3* getVertex2Address()
const;
238 (
const float vertex1_x,
239 const float vertex1_y,
240 const float vertex1_z,
241 const float vertex2_x,
242 const float vertex2_y,
243 const float vertex2_z);
253 void setVertexAddresses(
const Vector3& vertex1,
const Vector3& vertex2);
267 (
float& vertex1_x,
float& vertex1_y,
float& vertex1_z,
268 float& vertex2_x,
float& vertex2_y,
float& vertex2_z);
280 void setDefaultVertexAddresses();
296 bool isDefaultVertex1Address()
const;
307 bool isDefaultVertex2Address()
const;
319 bool isDefaultVertexAddresses()
const;
329 virtual bool isValid()
const;
338 virtual void dump(std::ostream& s = std::cout,
Size depth = 0)
const;
358 # ifndef BALL_NO_INLINE_FUNCTIONS
359 # include <BALL/VIEW/DATATYPE/vertex2.iC>
365 #endif // BALL_VIEW_DATATYPE_VERTEX2_H