Space Engineers
Classes | Public Member Functions | Properties | List of all members
VRage.Utils.MyBBSetSampler Class Reference

This class allows for uniform generation of points from a set of bounding boxes. More...

Public Member Functions

 MyBBSetSampler (Vector3D min, Vector3D max)
 
void SubtractBB (ref BoundingBoxD bb)
 
Vector3D Sample ()
 

Properties

bool Valid [get]
 

Detailed Description

This class allows for uniform generation of points from a set of bounding boxes.

You start by constructing a bounding box from where the points will be sampled. Then you can incrementally subtract bounding boxes and the resulting structure will allow you to generate uniformly distributed points using the Sample() function.

Definition at line 16 of file MyBBSetSampler.cs.

Constructor & Destructor Documentation

VRage.Utils.MyBBSetSampler.MyBBSetSampler ( Vector3D  min,
Vector3D  max 
)
inline

Definition at line 331 of file MyBBSetSampler.cs.

Member Function Documentation

Vector3D VRage.Utils.MyBBSetSampler.Sample ( )
inline

Definition at line 350 of file MyBBSetSampler.cs.

void VRage.Utils.MyBBSetSampler.SubtractBB ( ref BoundingBoxD  bb)
inline

Definition at line 341 of file MyBBSetSampler.cs.

Property Documentation

bool VRage.Utils.MyBBSetSampler.Valid
get

Definition at line 317 of file MyBBSetSampler.cs.


The documentation for this class was generated from the following file: