Space Engineers
Classes | Public Member Functions | Properties | List of all members
VRageMath.Spatial.MyVector3Grid< T > Class Template Reference

Classes

struct  SphereQuery
 

Public Member Functions

 MyVector3Grid (float cellSize)
 
 MyVector3Grid (float cellSize, IEqualityComparer< T > comparer)
 
void Clear ()
 
void ClearFast ()
 Clears the storage faster than clear. Only use for value type T More...
 
void AddPoint (ref Vector3 point, T data)
 
void RemovePoint (ref Vector3 point)
 
void MovePoint (int index, ref Vector3 newPosition)
 
int FindPointIndex (ref Vector3 point, T data)
 Returns the index of the point containing the given data on the given position The index is only valid as long as the grid does not change! More...
 
GetData (int index)
 Returns the data stored at the given index More...
 
Vector3 GetPoint (int index)
 Returns the point at which the data is stored at the given index More...
 
SphereQuery QueryPointsSphere (ref Vector3 point, float dist)
 Returns a query for iterating over points inside a sphere of radius dist around the given point More...
 
void RemoveTwo (ref SphereQuery en0, ref SphereQuery en1)
 Removes values pointed at by en0 and en1 and ensures that the queries both stay consistent More...
 
Dictionary< Vector3I, int >.Enumerator EnumerateBins ()
 
int GetNextBinIndex (int currentIndex)
 
void GetLocalBinBB (ref Vector3I binPosition, out BoundingBoxD output)
 
void CollectStorage (int startingIndex, ref List< T > output)
 
void CollectEntireStorage (List< T > output)
 

Properties

int Count [get]
 
int InvalidIndex [get]
 

Detailed Description

Definition at line 9 of file MyVector3Grid.cs.

Constructor & Destructor Documentation

VRageMath.Spatial.MyVector3Grid< T >.MyVector3Grid ( float  cellSize)
inline

Definition at line 166 of file MyVector3Grid.cs.

VRageMath.Spatial.MyVector3Grid< T >.MyVector3Grid ( float  cellSize,
IEqualityComparer< T >  comparer 
)
inline

Definition at line 168 of file MyVector3Grid.cs.

Member Function Documentation

void VRageMath.Spatial.MyVector3Grid< T >.AddPoint ( ref Vector3  point,
data 
)
inline

Definition at line 200 of file MyVector3Grid.cs.

void VRageMath.Spatial.MyVector3Grid< T >.Clear ( )
inline

Definition at line 181 of file MyVector3Grid.cs.

void VRageMath.Spatial.MyVector3Grid< T >.ClearFast ( )
inline

Clears the storage faster than clear. Only use for value type T

Definition at line 192 of file MyVector3Grid.cs.

void VRageMath.Spatial.MyVector3Grid< T >.CollectEntireStorage ( List< T >  output)
inline

Definition at line 448 of file MyVector3Grid.cs.

void VRageMath.Spatial.MyVector3Grid< T >.CollectStorage ( int  startingIndex,
ref List< T >  output 
)
inline

Definition at line 433 of file MyVector3Grid.cs.

Dictionary<Vector3I, int>.Enumerator VRageMath.Spatial.MyVector3Grid< T >.EnumerateBins ( )
inline

Definition at line 415 of file MyVector3Grid.cs.

int VRageMath.Spatial.MyVector3Grid< T >.FindPointIndex ( ref Vector3  point,
data 
)
inline

Returns the index of the point containing the given data on the given position The index is only valid as long as the grid does not change!

Definition at line 336 of file MyVector3Grid.cs.

T VRageMath.Spatial.MyVector3Grid< T >.GetData ( int  index)
inline

Returns the data stored at the given index

Definition at line 357 of file MyVector3Grid.cs.

void VRageMath.Spatial.MyVector3Grid< T >.GetLocalBinBB ( ref Vector3I  binPosition,
out BoundingBoxD  output 
)
inline

Definition at line 427 of file MyVector3Grid.cs.

int VRageMath.Spatial.MyVector3Grid< T >.GetNextBinIndex ( int  currentIndex)
inline

Definition at line 420 of file MyVector3Grid.cs.

Vector3 VRageMath.Spatial.MyVector3Grid< T >.GetPoint ( int  index)
inline

Returns the point at which the data is stored at the given index

Definition at line 365 of file MyVector3Grid.cs.

void VRageMath.Spatial.MyVector3Grid< T >.MovePoint ( int  index,
ref Vector3  newPosition 
)
inline

Definition at line 280 of file MyVector3Grid.cs.

SphereQuery VRageMath.Spatial.MyVector3Grid< T >.QueryPointsSphere ( ref Vector3  point,
float  dist 
)
inline

Returns a query for iterating over points inside a sphere of radius dist around the given point

Definition at line 373 of file MyVector3Grid.cs.

void VRageMath.Spatial.MyVector3Grid< T >.RemovePoint ( ref Vector3  point)
inline

Definition at line 228 of file MyVector3Grid.cs.

void VRageMath.Spatial.MyVector3Grid< T >.RemoveTwo ( ref SphereQuery  en0,
ref SphereQuery  en1 
)
inline

Removes values pointed at by en0 and en1 and ensures that the queries both stay consistent

Definition at line 381 of file MyVector3Grid.cs.

Property Documentation

int VRageMath.Spatial.MyVector3Grid< T >.Count
get

Definition at line 162 of file MyVector3Grid.cs.

int VRageMath.Spatial.MyVector3Grid< T >.InvalidIndex
get

Definition at line 164 of file MyVector3Grid.cs.


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