Last change
on this file since 2ab812d was
d85c194,
checked in by Piotr Rozyczko <piotr.rozyczko@…>, 9 years ago
|
Remaining modules refactored
|
-
Property mode set to
100644
|
File size:
533 bytes
|
Rev | Line | |
---|
[aa639ea] | 1 | #include "geo_shape.h" |
---|
| 2 | |
---|
| 3 | void GeoShape::SetOrientation(double angX,double angY, double angZ){ |
---|
| 4 | orientation_[0]=angX; |
---|
| 5 | orientation_[1]=angY; |
---|
| 6 | orientation_[2]=angZ; |
---|
| 7 | } |
---|
| 8 | |
---|
| 9 | void GeoShape::SetCenter(double cenX,double cenY,double cenZ){ |
---|
| 10 | center_[0]=cenX; |
---|
| 11 | center_[1]=cenY; |
---|
| 12 | center_[2]=cenZ; |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | vector<double> GeoShape::GetOrientation() const { |
---|
| 16 | return orientation_; |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | vector<double> GeoShape::GetCenter() const { |
---|
| 20 | return center_; |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | Point3D GeoShape::GetCenterP() const { |
---|
| 24 | Point3D p(center_[0],center_[1],center_[2]); |
---|
| 25 | return p; |
---|
| 26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.