Space Engineers
Static Public Member Functions | List of all members
VRage.Utils.MyDebug Class Reference

Static Public Member Functions

static void AssertRelease (bool condition)
 This "assert" is executed in DEBUG and RELEASE modes. Use it in code that that won't suffer from more work (e.g. loading), not in frequently used loops More...
 
static void AssertRelease (bool condition, string assertMessage)
 This "assert" is executed in DEBUG and RELEASE modes. Use it in code that that won't suffer from more work (e.g. loading), not in frequently used loops More...
 
static void FailRelease (string message)
 Logs the message on release and also displays a message on DEBUG. More...
 
static void FailRelease (string format, params object[] args)
 
static void AssertDebug (bool condition)
 This "assert" is executed in DEBUG mode. Because people dont know how to use AssertRelease! More...
 
static void AssertDebug (bool condition, string assertMessage)
 This "assert" is executed in DEBUG mode. Because people dont know how to use AssertRelease! More...
 
static bool IsValid (float f)
 Returns true if float is valid More...
 
static bool IsValid (Vector3 vec)
 Returns true if Vector3 is valid More...
 
static bool IsValidNormal (Vector3 vec)
 
static bool IsValid (Vector2 vec)
 Returns true if Vector2 is valid More...
 
static bool IsValid (Vector3?vec)
 Returns true if Vector3 is valid More...
 
static bool IsValid (Matrix matrix)
 
static bool IsValid (Quaternion q)
 
static void AssertIsValid (Vector3 vec)
 Returns true if Vector3 is valid More...
 
static void AssertIsValid (Vector3?vec)
 Returns true if Vector3 is valid More...
 
static void AssertIsValid (Vector2 vec)
 Returns true if Vector2 is valid More...
 
static void AssertIsValid (float f)
 Returns true if float is valid More...
 
static void AssertIsValid (Matrix matrix)
 
static void AssertIsValid (Quaternion q)
 

Detailed Description

Definition at line 12 of file MyDebug.cs.

Member Function Documentation

static void VRage.Utils.MyDebug.AssertDebug ( bool  condition)
inlinestatic

This "assert" is executed in DEBUG mode. Because people dont know how to use AssertRelease!

Parameters
condition

Definition at line 59 of file MyDebug.cs.

static void VRage.Utils.MyDebug.AssertDebug ( bool  condition,
string  assertMessage 
)
inlinestatic

This "assert" is executed in DEBUG mode. Because people dont know how to use AssertRelease!

Parameters
condition

Definition at line 70 of file MyDebug.cs.

static void VRage.Utils.MyDebug.AssertIsValid ( Vector3  vec)
inlinestatic

Returns true if Vector3 is valid

Parameters
vec
Returns

Definition at line 138 of file MyDebug.cs.

static void VRage.Utils.MyDebug.AssertIsValid ( Vector3 vec)
inlinestatic

Returns true if Vector3 is valid

Parameters
vec
Returns

Definition at line 148 of file MyDebug.cs.

static void VRage.Utils.MyDebug.AssertIsValid ( Vector2  vec)
inlinestatic

Returns true if Vector2 is valid

Parameters
vec
Returns

Definition at line 158 of file MyDebug.cs.

static void VRage.Utils.MyDebug.AssertIsValid ( float  f)
inlinestatic

Returns true if float is valid

Parameters
f
Returns

Definition at line 168 of file MyDebug.cs.

static void VRage.Utils.MyDebug.AssertIsValid ( Matrix  matrix)
inlinestatic

Definition at line 173 of file MyDebug.cs.

static void VRage.Utils.MyDebug.AssertIsValid ( Quaternion  q)
inlinestatic

Definition at line 178 of file MyDebug.cs.

static void VRage.Utils.MyDebug.AssertRelease ( bool  condition)
inlinestatic

This "assert" is executed in DEBUG and RELEASE modes. Use it in code that that won't suffer from more work (e.g. loading), not in frequently used loops

Parameters
condition

Definition at line 18 of file MyDebug.cs.

static void VRage.Utils.MyDebug.AssertRelease ( bool  condition,
string  assertMessage 
)
inlinestatic

This "assert" is executed in DEBUG and RELEASE modes. Use it in code that that won't suffer from more work (e.g. loading), not in frequently used loops

Parameters
condition

Definition at line 27 of file MyDebug.cs.

static void VRage.Utils.MyDebug.FailRelease ( string  message)
inlinestatic

Logs the message on release and also displays a message on DEBUG.

Parameters
message

Definition at line 40 of file MyDebug.cs.

static void VRage.Utils.MyDebug.FailRelease ( string  format,
params object[]  args 
)
inlinestatic

Definition at line 46 of file MyDebug.cs.

static bool VRage.Utils.MyDebug.IsValid ( float  f)
inlinestatic

Returns true if float is valid

Parameters
f
Returns

Definition at line 80 of file MyDebug.cs.

static bool VRage.Utils.MyDebug.IsValid ( Vector3  vec)
inlinestatic

Returns true if Vector3 is valid

Parameters
vec
Returns

Definition at line 90 of file MyDebug.cs.

static bool VRage.Utils.MyDebug.IsValid ( Vector2  vec)
inlinestatic

Returns true if Vector2 is valid

Parameters
vec
Returns

Definition at line 107 of file MyDebug.cs.

static bool VRage.Utils.MyDebug.IsValid ( Vector3 vec)
inlinestatic

Returns true if Vector3 is valid

Parameters
vec
Returns

Definition at line 117 of file MyDebug.cs.

static bool VRage.Utils.MyDebug.IsValid ( Matrix  matrix)
inlinestatic

Definition at line 122 of file MyDebug.cs.

static bool VRage.Utils.MyDebug.IsValid ( Quaternion  q)
inlinestatic

Definition at line 127 of file MyDebug.cs.

static bool VRage.Utils.MyDebug.IsValidNormal ( Vector3  vec)
inlinestatic

Definition at line 95 of file MyDebug.cs.


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