source:
sasview/src/sas/sascalc/simulation/geoshapespy/libgeoshapespy/geo_shape.cc
@
40ecc42
Last change on this file since 40ecc42 was d85c194, checked in by Piotr Rozyczko <piotr.rozyczko@…>, 9 years ago | |
---|---|
|
|
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.