Update 'README.md'

This commit is contained in:
divaldo 2018-07-02 23:53:27 +02:00
parent f497783aae
commit 8f4f41dc87
1 changed files with 26 additions and 0 deletions

View File

@ -22,6 +22,32 @@ Throws error if the index is incorrect in the file.
## Public functions
Returns with a vector which contains the dimension (X, Y, Z):
```
std::vector<double> GetDimension();
```
Returns with a vector which contains N (X, Y, Z):
```
std::vector<double> GetVoxel();
```
Get/Set the energy:
```
double GetEnergy();
void SetEnergy(double);
```
Get/Set the shape:
```
double GetShape();
void SetShape(double);
```
Returns with the material form the list by it's index (returns -1 if the index is out of range):
```