Class ConcurrentNormalAggregator
Inheritance
System.Object
ConcurrentNormalAggregator
Assembly: VRage.dll
Syntax
public class ConcurrentNormalAggregator : Object
Constructors
ConcurrentNormalAggregator(Int32)
Declaration
public ConcurrentNormalAggregator(int averageWindowSize)
Parameters
Type |
Name |
Description |
System.Int32 |
averageWindowSize |
|
Methods
Clear()
Declaration
GetAvgNormal(out Vector3)
Consumption is allowed only from one thread at the time!
It's not safe to call Clear() method in parallel!
Declaration
public bool GetAvgNormal(out Vector3 normal)
Parameters
Type |
Name |
Description |
Vector3 |
normal |
|
Returns
Type |
Description |
System.Boolean |
|
GetAvgNormalCached(out Vector3)
Declaration
public bool GetAvgNormalCached(out Vector3 normal)
Parameters
Type |
Name |
Description |
Vector3 |
normal |
|
Returns
Type |
Description |
System.Boolean |
|
PushNext(ref Vector3)
Might be safely called from multiple threads at the same time.
Declaration
public void PushNext(ref Vector3 normal)
Parameters
Type |
Name |
Description |
Vector3 |
normal |
|