mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Making Position/Direction structs more friendly for array-based signatures.
This commit is contained in:
parent
2e4809c8d5
commit
baa92194ef
3 changed files with 5 additions and 13 deletions
|
|
@ -57,9 +57,7 @@ struct Position {
|
|||
}
|
||||
|
||||
// Data members
|
||||
double x = 0.;
|
||||
double y = 0.;
|
||||
double z = 0.;
|
||||
union{ double xyz[3]; struct{ double x,y,z; }; };
|
||||
};
|
||||
|
||||
// Binary operators
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue