|
FhSim
3.1.0
Marine systems simulation
|
#include <ScalarFieldBake.h>
Public Attributes | |
| double | origin [3] |
| Corner the axis vectors emanate from, NED [m]. | |
| double | axis [3][3] |
| Full edge vector of each axis, NED [m]. | |
| int | counts [3] |
| Samples along each axis; each at least 1. | |
An oriented sampling grid in the NED frame.
Samples sit at texel centres: the i-th sample is at origin + sum_a axis[a] * ((i_a + 0.5) / counts[a]). The axis entries are full edge vectors, not unit directions, so spacing along axis a is |axis[a]| / counts[a]. The axes must be mutually orthogonal but need not align with the NED axes. A count of 1 is legal and gives a single mid-box slice, which is how a plane bake is expressed: a plane sets axis[2] to the zero vector and counts[2] to 1.