mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Shader like vectors for C# Scripting
This commit is contained in:
@@ -69,6 +69,12 @@ static
|
||||
#endregion
|
||||
|
||||
#region modf / frac / trunc
|
||||
|
||||
// Splits the value x into fractional and integer parts, each of which has the same sign as x.
|
||||
public static float modf(float x, out float integerPart)
|
||||
{
|
||||
return Math.[Friend]modff(x.X, out integerPart);
|
||||
}
|
||||
|
||||
// Splits the value x into fractional and integer parts, each of which has the same sign as x.
|
||||
public static float2 modf(float2 x, out float2 integerPart)
|
||||
|
||||
Reference in New Issue
Block a user