28 #include "math-extension.hh"
42 FRotation (AParam.FRotation)
44 FLookAt[0] = AParam.FLookAt[0];
45 FLookAt[1] = AParam.FLookAt[1];
46 FLookAt[2] = AParam.FLookAt[2];
74 AStream<<
"CParameterAimedPosition:"<<endl;
76 AStream<<
" Rotation: " <<AParameter.FRotation<<endl;
78 AStream<<
" LookAt: "<<AParameter.FLookAt[0]<<
" "
79 <<AParameter.FLookAt[1]<<
" "<<AParameter.FLookAt[2]<<endl;
91 AStream>>tmp; assert ( !strcmp(tmp,
"CParameterAimedPosition:") );
93 AStream>>tmp; assert ( !strcmp(tmp,
"Rotation:") );
94 AStream>>AParameter.FRotation;
96 AStream>>tmp; assert ( !strcmp(tmp,
"LookAt:") );
97 AStream>>AParameter.FLookAt[0]>>AParameter.FLookAt[1]>>AParameter.FLookAt[2];
105 {
return FRotation; }
109 if (! areEqual(FRotation, ARotation))
111 FRotation = ARotation;
118 if (! isZero(ADelta))
127 assert(0<=AIndice && AIndice<=2);
128 return FLookAt[AIndice];
133 assert(0<=AIndice && AIndice<=2);
135 if (! areEqual(
getLookAt(AIndice), AValue))
137 FLookAt[AIndice] = AValue;