15 #ifndef niftkBasicVec3D_h
16 #define niftkBasicVec3D_h
21 #include "niftkCoreExports.h"
105 float DistanceSquared(
const BasicVec3D& v)
const;
115 float GetX()
const {
return m_X; }
120 float GetY()
const {
return m_Y; }
125 float GetZ()
const {
return m_Z; }
GLdouble GLdouble z
Definition: glew.h:1543
std::vector< mitk::WorldPoint > operator*(const cv::Mat &M, const std::vector< mitk::WorldPoint > &p)
multiplies a set of points and corresponding scalar values by a 4x4 transformation matrix ...
Definition: mitkOpenCVMaths.cxx:354
bool operator==(niftk::BasicVertex const &x, niftk::BasicVertex const &y)
Definition: niftkMeshSmoother.cxx:31
float GetY() const
Returns the Y coordinate of the vector.
Definition: niftkBasicVec3D.h:120
GLfloat GLfloat v1
Definition: glew.h:1836
GLfloat GLfloat GLfloat v2
Definition: glew.h:1840
double Length(mitk::Point3D &vector)
Given a vector, will calculate the length.
Definition: niftkPointUtils.cxx:133
GLint GLint GLint GLint GLint GLint y
Definition: glew.h:1236
void SetZ(float z)
Sets the Z coordinate of the vector.
Definition: niftkBasicVec3D.h:123
std::ostream & operator<<(std::ostream &os, const CSVRow &data)
Definition: niftkCSVRow.h:89
void SetX(float x)
Sets the X coordinate of the vector.
Definition: niftkBasicVec3D.h:113
void SetY(float y)
Sets the Y coordinate of the vector.
Definition: niftkBasicVec3D.h:118
friend BasicVec3D operator*(float a, const BasicVec3D &v)
Definition: niftkBasicVec3D.h:78
const GLdouble * v
Definition: glew.h:1375
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8272
void Normalize(std::vector< double > &x)
Definition: niftiImageToMitk.cxx:34
virtual ~BasicVec3D()
Destructor that intentionally does nothing.
Definition: niftkBasicVec3D.h:42
float GetZ() const
Returns the Z coordinate of the vector.
Definition: niftkBasicVec3D.h:125
GLint GLint GLint GLint GLint x
Definition: glew.h:1236
float GetX() const
Returns the X coordinate of the vector.
Definition: niftkBasicVec3D.h:115
Simple 3D Vector implementation that is used in the Surface Extraction and surface smoothing and deci...
Definition: niftkBasicVec3D.h:30
Definition: niftkExceptionObject.h:21
cv::Point2d operator/(const cv::Point2d &p1, const int &n)
Divides a 2d point by an integer (x=x1/n, y=y1/2)
Definition: mitkOpenCVMaths.cxx:595
GLclampf f
Definition: glew.h:3136