Namespace VRage.Utils
Classes
ConcurrentNormalAggregator
LoggingOptions
My5BitEncoding
MyAtlasTextureCoordinate
MyAverageFiltering
Mean (average) filtering.
MyBBSetSampler
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.
MyBinaryReader
MyBuildNumbers
MyClipboardHelper
MyColorAlias
MyConsolePipeWriter
MyCriticalSection_Mutex
MyCriticalSection_SpinLock
MyDebugHitCounter
MyDebugHitCounter.Sample
MyDebugWorkTracker<T>
MyDebugWorkTrackerExtensions
MyDiscreteSampler
Provides a simple and efficient way of sampling a discrete probability distribution as described in http://www.jstatsoft.org/v11/i03/paper Instances can be reused by calling the Prepare method every time you want to change the distribution. Sampling a value is O(1), while the storage requirements are O(N), where N is number of possible values
MyDiscreteSampler.SamplingBin
MyDiscreteSampler<T>
A templated class for sampling from a set of objects with given probabilities. Uses MyDiscreteSampler.
MyEncryptionSymmetricRijndael
MyEnumDuplicitiesTester
MyEventArgs
MyEventSet
From http://www.wintellect.com/Resources CLR Via C# by Jeffrey Richter
MyFlagEnumAttribute
MyGuiDrawAlignEnum
MyLimitedDefaultLogPrinter
MyLog
MyLog.IndentToken
MyLogExtensions
MyLogSeverity
MyMathConstants
MyMaxFiltering
Nonlinear maximum filtering.
MyMemoryLogs
MyMemoryLogs.MyMemoryEvent
MyMergeHelper
Helper class for merge funcionality. Performs comparison between source and other values and set on self if value is different
MyMessageBox
Custom message box
MyMinFiltering
Nonlinear minimum filtering.
MyMwcConstants
MyPlane
MyPolyLine
MyPolyLineD
MyRectangle2D
MySectorConstants
MySingleCrypto
MySpherePlaneIntersectionEnum
MyStringHash
Generates string hashes deterministically and crashes on collisions. When used as key for hash tables (Dictionary or HashSet) always pass in MyStringHash.Comparer, otherwise lookups will allocate memory! Can be safely used in network but never serialize to disk!
IDs are computed as hash from string so there is a risk of collisions. Use only when MyStringId is not sufficient (eg. sending over network). Because the odds of collision get higher the more hashes are in use, do not use this for generated strings and make sure hashes are computed deterministically (eg. at startup) and don't require lengthy gameplay. This way we know about any collision early and not from rare and random crash reports.
MyStringHash.HashComparerType
MyStringId
Generates unique IDs for strings. When used as key for hash tables (Dictionary or HashSet) always pass in MyStringId.Comparer, otherwise lookups will allocate memory! Never serialize to network or disk!
IDs are created sequentially as they get requested so two IDs might be different between sessions or clients and server. You can safely use ToString() as it will not allocate.
MyStringId.IdComparerType
MyStringUtils
MyTickTimedItem<T>
Item that is accessible only for defined amount of time ticks.
MyTickTimedItemF
Item that is accessible only for defined amount of time ticks.
MyTimedItem<T>
Item that is accessible only for defined time span.
MyTimedItemCache
Temporaly stores information about item (event/place) existence. This is useful if you want to launch some actions only from time to time. You ask timed cache whether your last event still takes effect.
MyTriangle_Vertex_Normal
MyTriangle_Vertex_Normals
MyTriangle_Vertex_Normals_Tangents
MyUtils
MyFileSystemUtils
MyUtils.ClearCollectionToken<TCollection, TElement>
MyUtils.ClearRangeToken<T>
MyUtils.ClearRangeToken<T>.OffsetEnumerator
MyValidationConstants
MyValueFormatter
MyVector3ISet
A data structure for a set of Vector3I coordinates optimized for sets with high spatial coherence (hence the name)