Skip to content
Snippets Groups Projects
Commit 4dca7467 authored by Van Dung Nguyen's avatar Van Dung Nguyen
Browse files

No commit message

No commit message
parent edc46692
No related branches found
No related tags found
No related merge requests found
...@@ -75,6 +75,20 @@ class SVector3 { ...@@ -75,6 +75,20 @@ class SVector3 {
// Needed to allow the initialization of a SPoint3 from a SPoint3, a distance and a direction // Needed to allow the initialization of a SPoint3 from a SPoint3, a distance and a direction
SPoint3 point() const{return P;} SPoint3 point() const{return P;}
int getMaxValue(double& val) const{
if ((P[0] >=P[1]) && (P[0]>=P[2])){
val = P[0];
return 0;
}
else if ((P[1] >=P[0]) && (P[1]>=P[2])){
val = P[1];
return 1;
}
else {
val = P[2];
return 2;
}
}
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment