Small set of volumetric functions
Static Public Member Functions | |
static Vector3 | GetCubeSurfacePointInDirection (Vector3 normalizedDirection, float cubeSize) |
Computes the position of a cubes surface, in a given direction from the cube's center. | |
static float | GetDistanceFromOriginToCubeSurfacePointInDirection (Vector3 normalizedDirection, float cubeSize) |
Computes the distance from a cube's center to its surface, in a given direction. | |
static Vector3 | TransformBoxVolumeToSphericalVolume (Vector3 point, float cubeSize, float volumeRadius) |
Converts a point from a position in a cube, to a similar position in a sphere. The direction of the point, relative to the cube and sphere centers will not change, only the distance from the center will. However the distance to the surface of the cube and sphere, in that direction will not change. | |