Astra Unity 2.6.6
Astra Unity Plugin
Astra.Utils.ExtensionMethods.MyExtensions Class Reference

Static Public Member Functions

static float DotProduct (this PrimitiveVector3 lhs, PrimitiveVector3 rhs)
 
static PrimitiveVector3 CrossProduct (this PrimitiveVector3 lhs, PrimitiveVector3 rhs)
 
static PrimitiveVector2 FromVector2 (this Vector2 unityVector)
 
static Vector2 ToVector2 (this PrimitiveVector2 primVector)
 
static PrimitiveVector3 FromVector3 (this Vector3 unityVector)
 
static Vector3 ToVector3 (this PrimitiveVector3 primVector)
 
static PrimitiveVector4 FromVector4 (this Vector4 unityVector)
 
static Vector4 ToVector4 (this PrimitiveVector4 primVector)
 
static Matrix4x4 ToMatrix4x4 (this PrimitiveMatrix primitiveMatrix)
 
static Quaternion ToQuaternion (this PrimitiveVector4 primVector)
 
static PrimitiveVector4 FromQuaternion (this Quaternion unityQuaternion)
 
static float Magnitude (this PrimitiveVector3 vec)
 
static float SquareMagnitude (this PrimitiveVector3 vec)
 
static void NormalizeVector (this PrimitiveVector3 vec)
 
static PrimitiveVector3 Add (this PrimitiveVector3 lhs, PrimitiveVector3 rhs)
 
static PrimitiveVector3 Subtract (this PrimitiveVector3 lhs, PrimitiveVector3 rhs)
 
static PrimitiveVector3 Multiply (this PrimitiveVector3 lhs, float scalar)
 
static Color ToColor (this PrimitiveColor pc)
 
static PrimitiveColor FromColor (this Color c)
 
static Color ToColor (this PrimitiveVector4 pv4)
 
static Color ToColor (this PrimitiveVector3 pv3)
 
static T DeepClone< T > (this T a)
 
static string GetLowerSlice (this string input, int maxLen=-1)
 Retrieves a full or partial slice of the string as converted to lower case (via ASCII, this is NOT UTF compatible!) More...
 
static bool FastContains (this string input, string match)
 Does a quick non locale based check for a matching string More...
 

Member Function Documentation

◆ FastContains()

static bool Astra.Utils.ExtensionMethods.MyExtensions.FastContains ( this string  input,
string  match 
)
inlinestatic

Does a quick non locale based check for a matching string

Parameters
input
match
Returns

◆ GetLowerSlice()

static string Astra.Utils.ExtensionMethods.MyExtensions.GetLowerSlice ( this string  input,
int  maxLen = -1 
)
inlinestatic

Retrieves a full or partial slice of the string as converted to lower case (via ASCII, this is NOT UTF compatible!)

Parameters
input
maxLen
Returns

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