#include <ExCVec3D.h>
Public Methods | |
ExCVec3D () | |
ExCVec3D (float x, float y, float z) | |
~ExCVec3D () | |
float | GetVectorLenght (void) |
void | SetValue (float x, float y, float z) |
void | SetX (double val) |
void | SetY (double val) |
void | SetZ (double val) |
double | GetX (void) |
double | GetY (void) |
double | GetZ (void) |
void | Draw (void) |
ExCVec3D & | operator= (const ExCVec3D &Vec) |
bool | operator== (const ExCVec3D &Vec) |
ExCVec3D | operator+ (const ExCVec3D &Vec) |
ExCVec3D | operator- (const ExCVec3D &Vec) |
ExCVec3D | operator * (const ExCVec3D &Vec) |
ExCVec3D | operator * (float scalar) |
ExCVec3D | operator/ (const ExCVec3D &Vec) |
ExCVec3D | operator/ (float scalar) |
Data Fields | |
float | m_Vector [3] |
ExCVec3D | GetVecNormale (void) |
Friends | |
std::ostream & | operator<< (std::ostream &s, const ExCVec3D &vec) |
|
Definition at line 28 of file ExCVec3D.cpp. References m_Vector.
|
|
Definition at line 33 of file ExCVec3D.cpp. References m_Vector.
|
|
Definition at line 38 of file ExCVec3D.cpp.
00039 { 00040 00041 } |
|
Definition at line 63 of file ExCVec3D.cpp. References m_Vector, and SetValue().
00064 { 00065 ExCVec3D vx,vy,vz; 00066 ExCVec3D source; 00067 00068 source.SetValue(0.0f,0.0f,0.0f); 00069 00070 00071 00072 vx.m_Vector[0]=this->m_Vector[0]+1.0f; 00073 vy.m_Vector[1]=this->m_Vector[1]+1.0f; 00074 vz.m_Vector[2]=this->m_Vector[2]+1.0f; 00075 00076 00077 glBegin(GL_TRIANGLES); 00078 glColor3ub(255,255,255); 00079 glVertex3f(0.0f,0.0f,0.0f); 00080 glVertex3f(1.0f,1.0f,1.0f); 00081 glVertex3f(-1.0f,-1.0f,-1.0f); 00082 glEnd(); 00083 00084 glBegin(GL_LINE); 00085 glColor3ub(255,0,0); 00086 glVertex3fv(source.m_Vector); 00087 glVertex3fv(vx.m_Vector); 00088 glColor3ub(0,255,0); 00089 glVertex3fv(source.m_Vector); 00090 glVertex3fv(vy.m_Vector); 00091 glColor3ub(0,0,255); 00092 glVertex3fv(source.m_Vector); 00093 glVertex3fv(vz.m_Vector); 00094 glEnd(); 00095 } |
|
Definition at line 45 of file ExCVec3D.cpp. References m_Vector. Referenced by ExCCamera::Draw(), GetAxisFromQuaternion(), and GetVecNormale().
|
|
Definition at line 54 of file ExCVec3D.h. References m_Vector. Referenced by ExCEntite::Draw(), ExCComposed::Draw(), ExCCameraTarget::Draw(), ExCCamera::Draw(), ExCLight::GetPositionX(), ExCLight::GetTargetX(), ExCCamera::GoToView(), ExCLight::SetPosition(), ExCLight::SetPositionX(), ExCLight::SetPositionY(), ExCLight::SetPositionZ(), ExCLight::SetTarget(), ExCLight::SetTargetX(), ExCLight::SetTargetY(), ExCLight::SetTargetZ(), and ExCObject::ShowInfo().
00054 {return m_Vector[0];} |
|
Definition at line 55 of file ExCVec3D.h. References m_Vector. Referenced by ExCEntite::Draw(), ExCComposed::Draw(), ExCCameraTarget::Draw(), ExCCamera::Draw(), ExCLight::GetPositionY(), ExCLight::GetTargetY(), ExCCamera::GoToView(), ExCLight::SetPosition(), ExCLight::SetPositionX(), ExCLight::SetPositionY(), ExCLight::SetPositionZ(), ExCLight::SetTarget(), ExCLight::SetTargetX(), ExCLight::SetTargetY(), ExCLight::SetTargetZ(), and ExCObject::ShowInfo().
00055 {return m_Vector[1];} |
|
Definition at line 56 of file ExCVec3D.h. References m_Vector. Referenced by ExCEntite::Draw(), ExCComposed::Draw(), ExCCameraTarget::Draw(), ExCCamera::Draw(), ExCLight::GetPositionZ(), ExCLight::GetTargetZ(), ExCCamera::GoToView(), ExCLight::SetPosition(), ExCLight::SetPositionX(), ExCLight::SetPositionY(), ExCLight::SetPositionZ(), ExCLight::SetTarget(), ExCLight::SetTargetX(), ExCLight::SetTargetY(), ExCLight::SetTargetZ(), and ExCObject::ShowInfo().
00056 {return m_Vector[2];} |
|
Definition at line 136 of file ExCVec3D.cpp. References m_Vector.
|
|
Definition at line 128 of file ExCVec3D.cpp. References m_Vector.
|
|
Definition at line 111 of file ExCVec3D.cpp. References m_Vector.
|
|
Definition at line 120 of file ExCVec3D.cpp. References m_Vector.
|
|
Definition at line 152 of file ExCVec3D.cpp. References m_Vector.
|
|
Definition at line 144 of file ExCVec3D.cpp. References m_Vector.
|
|
Definition at line 98 of file ExCVec3D.cpp. References m_Vector.
|
|
Definition at line 105 of file ExCVec3D.cpp. References m_Vector.
|
|
Definition at line 56 of file ExCVec3D.cpp. References m_Vector. Referenced by Draw(), ExCSystemeParticule::Draw(), ExCParticule::Draw(), ExCCamera::ExCCamera(), ExCObject::ExCObject(), ExCParticule::ExCParticule(), ExCSystemeParticule::ExCSystemeParticule(), GetAxisFromQuaternion(), and ExCSystemeParticule::LoadParticuleSysteme().
|
|
Definition at line 51 of file ExCVec3D.h. References m_Vector. Referenced by ExCCamera::Draw(), ExCCamera::GoToView(), ExCLight::Reset(), ExCLight::SetPositionX(), and ExCLight::SetTargetX().
00051 {m_Vector[0]=val;} |
|
Definition at line 52 of file ExCVec3D.h. References m_Vector. Referenced by ExCCamera::Draw(), ExCCamera::GoToView(), ExCLight::Reset(), ExCLight::SetPositionY(), and ExCLight::SetTargetY().
00052 {m_Vector[1]=val;} |
|
Definition at line 53 of file ExCVec3D.h. References m_Vector. Referenced by ExCCamera::Draw(), ExCCamera::GoToView(), ExCLight::Reset(), ExCLight::SetPositionZ(), and ExCLight::SetTargetZ().
00053 {m_Vector[2]=val;} |
|
Definition at line 162 of file ExCVec3D.cpp.
|
|
Definition at line 49 of file ExCVec3D.cpp.
00050 { 00051 ExCVec3D VecNorm; 00052 VecNorm=*this; 00053 VecNorm=*this/this->GetVectorLenght(); 00054 return VecNorm; 00055 } |
|
Definition at line 38 of file ExCVec3D.h. Referenced by Draw(), ExCSystemeParticule::Draw(), ExCParticule::Draw(), ExCEntite::Draw(), ExCComposed::Draw(), ExCCamera::Draw(), ExCVec3D(), GetCrossProduct(), GetDotProduct(), GetNewVecFromEuler(), GetVectorLenght(), GetX(), GetY(), GetZ(), ExCCamera::MoveCamera(), operator *(), operator+(), operator-(), operator/(), operator<<(), operator=(), operator==(), ExCParticule::PrecalculeParticuleTrajectory(), ExCCamera::RotateView(), SetValue(), SetX(), SetY(), and SetZ(). |