9 for (
int i=0; i<(int)pl.size()-1; ++i) {
10 cout <<
"(" << pl[i] <<
")-" ;
13 cout <<
"(" << pl.back() <<
")";
23 int main(
int argc,
char** argv ) {
33 cout <<
"Initial polyline: " << endl ;
42 cout <<
"After a 90 degree rotation around the z-axis:" << endl ;
48 cout <<
"After rotating back:" << endl ;
53 cout <<
"Done!" << endl ;
int main(int argc, char **argv)
void printPolyline(const JPolyline3D &pl)
Data structure for polyline in three dimensions.
JPolyline3D & rotate_back(const JRotation3D &R)
Rotate back all vertices.
JPolyline3D & rotate(const JRotation3D &R)
Rotate all vertices.
Data structure for vector in three dimensions.
Auxiliary classes and methods for 3D geometrical objects and operations.