|
static Matrix4x4 | Add (Matrix4x4 left, Matrix4x4 right) |
| Strips out nas More...
|
|
static void | Add (ref Matrix4x4 left, Matrix4x4 right) |
| Add a 4x4 Matrix into another one (does not allocate) More...
|
|
static void | Add (ref Matrix4x4 left, ref Matrix4x4 right) |
| Add a 4x4 Matrix into another one (does not allocate) More...
|
|
static string | AppendValueToString (string s0, string val, char separator) |
| Appends a new string to the given source string if source string does not already contain it. Does not modify input values. More...
|
|
static float | BearingDegrees (Vector3 v1, Vector3 v2, Vector3 upAxis) |
| Returns an angle from -180° to 180° between the two vectors, based on the up axis to tell left from right More...
|
|
static float | BearingRadians (Vector3 v1, Vector3 v2, Vector3 upAxis) |
| Returns an angle from -PI to PI between the two vectors, based on the up axis to tell left from right More...
|
|
static float | CalculateFolderSize (string folderPath, out int totalFiles) |
| Calculates the size of data and number of files in a folder (and sub-folders) More...
|
|
static bool | CheckDOSName (string originalString) |
| Checks if the string is a reserved DOS name More...
|
|
static VersionCompareResult | CheckVersion (string versionString, int lastMajor, int lastMinor, int lastRev) |
|
static VersionCompareResult | CheckVersion (int version_major, int version_minor, int version_revision, int lastMajor, int lastMinor, int lastRev) |
|
static Rect | ClampRectToScreen (Rect r) |
| Takes a Rect r and moves it inside the screen space More...
|
|
static bool | DeepCompare< T > (this HashSet< T > a, HashSet< T > b) |
|
static Vector3d | Diag (Matrix4x4 m) |
| Returns the diagonal 3-vector from the 4x4 matrix (simulating 3x3 matrix) More...
|
|
static List< T > | FindComponentsImplementing< T > (GameObject go, bool returnInactive) |
|
static Transform | FindInPartModel (Transform part, string childName) |
|
static void | FindTagsInChildren (List< string > tags, Transform trf) |
| Find all tags contained in the sub-object hierarchy More...
|
|
static Transform | FindTransformAtIndexPath (string indexPath, Transform root) |
|
static string | GenerateFilePathWithDate (string filePath) |
|
static int | GenerateSuperSeed (Guid guid, int seed) |
| Creates an excessively unique and unpredictable seed for an object GUID is super unique. Super Seed crushes up the GUID and salts it with the passed seed. More...
|
|
static Texture2DArray | GenerateTexture2DArray (List< Texture2D > textureList, TextureFormat format, bool createMipMaps) |
| Generates a Texture2DArray from a list of textures. More...
|
|
static ObjectActivator< T > | GetActivator< T > (ConstructorInfo ctor) |
|
static bool | GetAttachNodeInfo (string configAttnID, ref string nodeID, ref string attnPartID, ref Vector3 attnPos) |
| Parses a string into attach node properties More...
|
|
static bool | GetAttachNodeInfo (string configAttnID, ref string nodeID, ref string attnPartID, ref Vector3 attnPos, ref string attachMeshName) |
| Parses a string into attach node properties More...
|
|
static bool | GetAttachNodeInfo (string configAttnID, ref string nodeID, ref string attnPartID, ref Vector3 attnPos, ref string attachMeshName, ref Vector3 attnRot, ref Vector3 secAxis) |
| Parses a string into attach node properties More...
|
|
static bool | GetAttachNodeInfo (string configAttnID, ref string nodeID, ref string attnPartID, ref Vector3 attnPos, ref Vector3 attnRot, ref Vector3 attnActualPos, ref Vector3 attnActualRot) |
| Parses a string into attach node properties More...
|
|
static string | GetLinkID (string configAttnID) |
|
static string | GetOrCreatePath (string relPath) |
| Returns a filepath that points to the given folders inside the game's root folder (will create it if one isn't found) More...
|
|
static Part | GetPartByCraftID (this List< Part > parts, uint id) |
|
static void | GetPartInfo (string configPartID, ref string partName, ref string craftID) |
|
static string | GetPartName (string configPartID) |
|
static string | GetRelativePath (string fullPath, string basePath) |
| Returns a relative path string from a full path based on a base path provided. More...
|
|
static string | GetTransformIndexPathToRoot (Transform t, Transform root) |
|
static string | GetTransformPathToRoot (Transform t, Transform root) |
|
static bool | HasAncestorTransform (Transform src, Transform ancestor) |
| Returns true if the src transform is a hierarchical descendant of the ancestor transform More...
|
|
static bool | HasDescendantTransform (Transform src, Transform child) |
| Returns true if the src transform has the child transform as a descendant on its hierarchy More...
|
|
static float | HeadingDegrees (Vector3 v1, Vector3 v2, Vector3 upAxis) |
| Returns an angle from 0 to 360° between the two vectors, based on the up axis to tell left from right More...
|
|
static float | HeadingRadians (Vector3 v1, Vector3 v2, Vector3 upAxis) |
| Returns an angle from 0 to 2PI between the two vectors, based on the up axis to tell left from right More...
|
|
static string | LocalizeNumber (double value, string format) |
| Converts a number to a string localizing the numeric punctuation More...
|
|
static string | LocalizeNumber (float value, string format) |
| Converts a number to a string localizing the numeric punctuation More...
|
|
static bool | MoveFile (string filePath, string destinationPath, bool overwrite=false) |
|
static Matrix4x4 | OuterProduct (Vector3 left, Vector3 right) |
| Construct the outer product of two 3-vectors as a 4x4 matrix More...
|
|
static void | OuterProduct (Vector3 left, Vector3 right, ref Matrix4x4 m) |
| Construct the outer product of two 3-vectors as a 4x4 matrix More...
|
|
static void | OuterProduct2 (Vector3 left, Vector3 right, ref Matrix4x4 m) |
| Construct the outer product of two 3-vectors as a 4x4 matrix DOES NOT ZERO ANY THINGS WOT ARE ZERO OR IDENTITY INNIT More...
|
|
static T[] | ParseArray< T > (string arrayString, ParserMethod< T > parser) |
|
static Quaternion | ParseQuaternion (string quaternionString) |
|
static Quaternion | ParseQuaternion (string quaternionString, char separator) |
|
static Quaternion | ParseQuaternion (string x, string y, string z, string w) |
|
static QuaternionD | ParseQuaternionD (string quaternionString) |
| Parses a QuaternionD from a comma-separated string of XYZW values More...
|
|
static QuaternionD | ParseQuaternionD (string x, string y, string z, string w) |
|
static QuaternionD | ParseQuaternionD (string quaternionString, char separator) |
| Parses a QuaternionD from a comma-separated string of XYZW values More...
|
|
static Vector2 | ParseVector2 (string vectorString) |
| Parses a Vector2 from a comma-separated string of XYZ values More...
|
|
static Vector2 | ParseVector2 (string vectorString, char separator) |
| Parses a Vector2 from a delimited string of XYZ values More...
|
|
static Vector2 | ParseVector2 (string x, string y) |
|
static Vector3 | ParseVector3 (string vectorString) |
| Parses a Vector3 from a comma-separated string of XYZ values More...
|
|
static Vector3 | ParseVector3 (string vectorString, char separator) |
| Parses a Vector3 from a delimited string of XYZ values More...
|
|
static Vector3 | ParseVector3 (string x, string y, string z) |
|
static Vector3d | ParseVector3d (string vectorString) |
| Parses a Vector3 from a comma-separated string of XYZ values More...
|
|
static Vector3d | ParseVector3d (string vectorString, char separator) |
| Parses a Vector3 from a delimited string of XYZ values More...
|
|
static Vector3d | ParseVector3d (string x, string y, string z) |
|
static Vector4 | ParseVector4 (string vectorString) |
| Parses a Vector4 from a comma-separated string of XYZ values More...
|
|
static Vector4 | ParseVector4 (string x, string y, string z, string w) |
|
static Vector4 | ParseVector4 (string vectorString, char separator) |
| Parses a Vector4 from a delimited string of XYZ values More...
|
|
static string | PrintCollection< T > (IEnumerable< T > collection, string separator=", ") |
| Produces a string combining the string values (given by .ToString()) of all the elements in a collection More...
|
|
static string | PrintCollection< T > (IEnumerable< T > collection, string separator, Func< T, string > stringAccessor) |
| Produces a string combining the string values (given by stringAccessor) of all the elements in a collection More...
|
|
static string | PrintCoordinates (double latitude, double longitude, bool singleLine, bool includeMinutes=true, bool includeSeconds=true) |
|
static string | PrintDate (double time, bool includeTime, bool includeSeconds=false) |
|
static string | PrintDateCompact (double time, bool includeTime, bool includeSeconds=false) |
|
static string | PrintDateDelta (double time, bool includeTime, bool includeSeconds=false, bool useAbs=false) |
|
static string | PrintDateDeltaCompact (double time, bool includeTime, bool includeSeconds, bool useAbs=false) |
|
static string | PrintDateDeltaCompact (double time, bool includeTime, bool includeSeconds, int interestedPlaces, bool useAbs=false) |
|
static string | PrintDateNew (double time, bool includeTime) |
|
static string | PrintLatitude (double latitude, bool includeMinutes=true, bool includeSeconds=true) |
|
static string | PrintLocalizedModuleName (string moduleName) |
|
static string | PrintLongitude (double longitude, bool includeMinutes=true, bool includeSeconds=true) |
|
static string | PrintModuleName (string moduleName) |
| returns a string with an auto-generated pretty name for a module, given its class name- More...
|
|
static string | PrintSI (double amount, string unitName, int sigFigs=3, bool longPrefix=false) |
|
static string | PrintSpacedStringFromCamelcase (this string s) |
|
static string | PrintTime (double time, int valuesOfInterest, bool explicitPositive) |
|
static string | PrintTime (double time, int valuesOfInterest, bool explicitPositive, bool logEnglish) |
|
static string | PrintTimeCompact (double time, bool explicitPositive) |
|
static string | PrintTimeLong (double time) |
|
static string | PrintTimeStamp (double time, bool days=false, bool years=false) |
|
static string | PrintTimeStampCompact (double time, bool days=false, bool years=false) |
|
static void | RemoveNonHighlightableRenderers (this List< Renderer > rends) |
|
static string | ReplaceString (string src, params StringReplacement[] replacements) |
|
static string | SanitizeFilename (string originalFilename) |
| Strips out nasty characters for mac/pc filename creation More...
|
|
static string | SanitizeInstanceName (string originalString) |
| Strips out the parenthesis and whatever is in them from an instance name More...
|
|
static string | SanitizeString (string originalString, char replacementChar, bool replaceEmpty) |
| Strips out nasty characters for mac/pc filename creation More...
|
|
static string | StripFileExtension (FileInfo file) |
|
static Matrix4x4 | ToDiagonalMatrix (float v) |
| Constructs diagonal matrix from a float (Identity * val) More...
|
|
static void | ToDiagonalMatrix (float v, ref Matrix4x4 m) |
| Constructs diagonal matrix from a float (Identity * val) More...
|
|
static Matrix4x4 | ToDiagonalMatrix (Vector3 v) |
| Constructs diagonal matrix from a 3-vector (simulating 3x3 matrix) More...
|
|
static void | ToDiagonalMatrix2 (float v, ref Matrix4x4 m) |
| Constructs diagonal matrix from a float (Identity * val) DOES NOT ZERO ANY THINGS WOT ARE ZERO More...
|
|
static Matrix4x4 | ToDiagonalMatrix2 (Vector3 v, ref Matrix4x4 m) |
| Constructs diagonal matrix from a 3-vector (simulating 3x3 matrix) DOES NOT ZERO ANY THINGS WOT ARE ZERO OR IDENTITY INNIT More...
|
|
static string | WriteArray< T > (T[] array) |
|
static string | WriteQuaternion (Quaternion quaternion) |
| Returns a comma-separated string for the given quaternion More...
|
|
static string | WriteQuaternion (Quaternion quaternion, string separator) |
| Returns a delimited string for the given quaternion More...
|
|
static string | WriteQuaternion (QuaternionD quaternion) |
| Returns a comma-separated string for the given quaternion More...
|
|
static string | WriteQuaternion (QuaternionD quaternion, string separator) |
| Returns a delimited string for the given quaternion More...
|
|
static string | WriteVector (Vector2 vector) |
| Returns a comma-separated string for the given vector More...
|
|
static string | WriteVector (Vector2 vector, string separator) |
| Returns a delimited string for the given vector More...
|
|
static string | WriteVector (Vector3 vector) |
| Returns a comma-separated string for the given vector More...
|
|
static string | WriteVector (Vector3 vector, string separator) |
| Returns a delimited string for the given vector More...
|
|
static string | WriteVector (Vector3d vector) |
| Returns a comma-separated string for the given vector More...
|
|
static string | WriteVector (Vector3d vector, string separator) |
| Returns a delimited string for the given vector More...
|
|
static string | WriteVector (Vector4 vector) |
| Returns a comma-separated string for the given vector More...
|
|
static string | WriteVector (Vector4 vector, string separator) |
| Returns a delimited string for the given vector More...
|
|