Show / Hide Table of Contents

Class ConcurrentNormalAggregator

Inheritance
System.Object
ConcurrentNormalAggregator
Namespace: VRage.Utils
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()

Allowed to be called only from one thread at the time! It's not safe to call GetAvgNormal(out Vector3) method in parallel!

Declaration
public void Clear()

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
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾