654 lines
42 KiB
Markdown
654 lines
42 KiB
Markdown
# System.Numerics
|
|
|
|
``` diff
|
|
+namespace System.Numerics {
|
|
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
|
|
+ public struct BigInteger : IComparable, IComparable<BigInteger>, IEquatable<BigInteger>, IFormattable {
|
|
+ public BigInteger(byte[] value);
|
|
+ public BigInteger(Decimal value);
|
|
+ public BigInteger(double value);
|
|
+ public BigInteger(int value);
|
|
+ public BigInteger(long value);
|
|
+ public BigInteger(float value);
|
|
+ public BigInteger(uint value);
|
|
+ public BigInteger(ulong value);
|
|
+ public bool IsEven { get; }
|
|
+ public bool IsOne { get; }
|
|
+ public bool IsPowerOfTwo { get; }
|
|
+ public bool IsZero { get; }
|
|
+ public static BigInteger MinusOne { get; }
|
|
+ public static BigInteger One { get; }
|
|
+ public int Sign { get; }
|
|
+ public static BigInteger Zero { get; }
|
|
+ public static BigInteger Abs(BigInteger value);
|
|
+ public static BigInteger Add(BigInteger left, BigInteger right);
|
|
+ public static int Compare(BigInteger left, BigInteger right);
|
|
+ public int CompareTo(long other);
|
|
+ public int CompareTo(BigInteger other);
|
|
+ public int CompareTo(ulong other);
|
|
+ public static BigInteger Divide(BigInteger dividend, BigInteger divisor);
|
|
+ public static BigInteger DivRem(BigInteger dividend, BigInteger divisor, out BigInteger remainder);
|
|
+ public bool Equals(long other);
|
|
+ public bool Equals(BigInteger other);
|
|
+ public override bool Equals(object obj);
|
|
+ public bool Equals(ulong other);
|
|
+ public override int GetHashCode();
|
|
+ public static BigInteger GreatestCommonDivisor(BigInteger left, BigInteger right);
|
|
+ public static double Log(BigInteger value);
|
|
+ public static double Log(BigInteger value, double baseValue);
|
|
+ public static double Log10(BigInteger value);
|
|
+ public static BigInteger Max(BigInteger left, BigInteger right);
|
|
+ public static BigInteger Min(BigInteger left, BigInteger right);
|
|
+ public static BigInteger ModPow(BigInteger value, BigInteger exponent, BigInteger modulus);
|
|
+ public static BigInteger Multiply(BigInteger left, BigInteger right);
|
|
+ public static BigInteger Negate(BigInteger value);
|
|
+ public static BigInteger operator +(BigInteger left, BigInteger right);
|
|
+ public static BigInteger operator &(BigInteger left, BigInteger right);
|
|
+ public static BigInteger operator |(BigInteger left, BigInteger right);
|
|
+ public static BigInteger operator --(BigInteger value);
|
|
+ public static BigInteger operator /(BigInteger dividend, BigInteger divisor);
|
|
+ public static bool operator ==(long left, BigInteger right);
|
|
+ public static bool operator ==(BigInteger left, long right);
|
|
+ public static bool operator ==(BigInteger left, BigInteger right);
|
|
+ public static bool operator ==(BigInteger left, ulong right);
|
|
+ public static bool operator ==(ulong left, BigInteger right);
|
|
+ public static BigInteger operator ^(BigInteger left, BigInteger right);
|
|
+ public static explicit operator BigInteger (Decimal value);
|
|
+ public static explicit operator BigInteger (double value);
|
|
+ public static explicit operator byte (BigInteger value);
|
|
+ public static explicit operator Decimal (BigInteger value);
|
|
+ public static explicit operator double (BigInteger value);
|
|
+ public static explicit operator short (BigInteger value);
|
|
+ public static explicit operator int (BigInteger value);
|
|
+ public static explicit operator long (BigInteger value);
|
|
+ public static explicit operator sbyte (BigInteger value);
|
|
+ public static explicit operator float (BigInteger value);
|
|
+ public static explicit operator ushort (BigInteger value);
|
|
+ public static explicit operator uint (BigInteger value);
|
|
+ public static explicit operator ulong (BigInteger value);
|
|
+ public static explicit operator BigInteger (float value);
|
|
+ public static bool operator >(long left, BigInteger right);
|
|
+ public static bool operator >(BigInteger left, long right);
|
|
+ public static bool operator >(BigInteger left, BigInteger right);
|
|
+ public static bool operator >(BigInteger left, ulong right);
|
|
+ public static bool operator >(ulong left, BigInteger right);
|
|
+ public static bool operator >=(long left, BigInteger right);
|
|
+ public static bool operator >=(BigInteger left, long right);
|
|
+ public static bool operator >=(BigInteger left, BigInteger right);
|
|
+ public static bool operator >=(BigInteger left, ulong right);
|
|
+ public static bool operator >=(ulong left, BigInteger right);
|
|
+ public static implicit operator BigInteger (byte value);
|
|
+ public static implicit operator BigInteger (short value);
|
|
+ public static implicit operator BigInteger (int value);
|
|
+ public static implicit operator BigInteger (long value);
|
|
+ public static implicit operator BigInteger (sbyte value);
|
|
+ public static implicit operator BigInteger (ushort value);
|
|
+ public static implicit operator BigInteger (uint value);
|
|
+ public static implicit operator BigInteger (ulong value);
|
|
+ public static BigInteger operator ++(BigInteger value);
|
|
+ public static bool operator !=(long left, BigInteger right);
|
|
+ public static bool operator !=(BigInteger left, long right);
|
|
+ public static bool operator !=(BigInteger left, BigInteger right);
|
|
+ public static bool operator !=(BigInteger left, ulong right);
|
|
+ public static bool operator !=(ulong left, BigInteger right);
|
|
+ public static BigInteger operator <<(BigInteger value, int shift);
|
|
+ public static bool operator <(long left, BigInteger right);
|
|
+ public static bool operator <(BigInteger left, long right);
|
|
+ public static bool operator <(BigInteger left, BigInteger right);
|
|
+ public static bool operator <(BigInteger left, ulong right);
|
|
+ public static bool operator <(ulong left, BigInteger right);
|
|
+ public static bool operator <=(long left, BigInteger right);
|
|
+ public static bool operator <=(BigInteger left, long right);
|
|
+ public static bool operator <=(BigInteger left, BigInteger right);
|
|
+ public static bool operator <=(BigInteger left, ulong right);
|
|
+ public static bool operator <=(ulong left, BigInteger right);
|
|
+ public static BigInteger operator %(BigInteger dividend, BigInteger divisor);
|
|
+ public static BigInteger operator *(BigInteger left, BigInteger right);
|
|
+ public static BigInteger operator ~(BigInteger value);
|
|
+ public static BigInteger operator >>(BigInteger value, int shift);
|
|
+ public static BigInteger operator -(BigInteger left, BigInteger right);
|
|
+ public static BigInteger operator -(BigInteger value);
|
|
+ public static BigInteger operator +(BigInteger value);
|
|
+ public static BigInteger Parse(string value);
|
|
+ public static BigInteger Parse(string value, NumberStyles style);
|
|
+ public static BigInteger Parse(string value, NumberStyles style, IFormatProvider provider);
|
|
+ public static BigInteger Parse(string value, IFormatProvider provider);
|
|
+ public static BigInteger Pow(BigInteger value, int exponent);
|
|
+ public static BigInteger Remainder(BigInteger dividend, BigInteger divisor);
|
|
+ public static BigInteger Subtract(BigInteger left, BigInteger right);
|
|
+ int System.IComparable.CompareTo(object obj);
|
|
+ public byte[] ToByteArray();
|
|
+ public override string ToString();
|
|
+ public string ToString(IFormatProvider provider);
|
|
+ public string ToString(string format);
|
|
+ public string ToString(string format, IFormatProvider provider);
|
|
+ public static bool TryParse(string value, NumberStyles style, IFormatProvider provider, out BigInteger result);
|
|
+ public static bool TryParse(string value, out BigInteger result);
|
|
+ }
|
|
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
|
|
+ public struct Complex : IEquatable<Complex>, IFormattable {
|
|
+ public static readonly Complex ImaginaryOne;
|
|
+ public static readonly Complex One;
|
|
+ public static readonly Complex Zero;
|
|
+ public Complex(double real, double imaginary);
|
|
+ public double Imaginary { get; }
|
|
+ public double Magnitude { get; }
|
|
+ public double Phase { get; }
|
|
+ public double Real { get; }
|
|
+ public static double Abs(Complex value);
|
|
+ public static Complex Acos(Complex value);
|
|
+ public static Complex Add(Complex left, Complex right);
|
|
+ public static Complex Asin(Complex value);
|
|
+ public static Complex Atan(Complex value);
|
|
+ public static Complex Conjugate(Complex value);
|
|
+ public static Complex Cos(Complex value);
|
|
+ public static Complex Cosh(Complex value);
|
|
+ public static Complex Divide(Complex dividend, Complex divisor);
|
|
+ public bool Equals(Complex value);
|
|
+ public override bool Equals(object obj);
|
|
+ public static Complex Exp(Complex value);
|
|
+ public static Complex FromPolarCoordinates(double magnitude, double phase);
|
|
+ public override int GetHashCode();
|
|
+ public static Complex Log(Complex value);
|
|
+ public static Complex Log(Complex value, double baseValue);
|
|
+ public static Complex Log10(Complex value);
|
|
+ public static Complex Multiply(Complex left, Complex right);
|
|
+ public static Complex Negate(Complex value);
|
|
+ public static Complex operator +(Complex left, Complex right);
|
|
+ public static Complex operator /(Complex left, Complex right);
|
|
+ public static bool operator ==(Complex left, Complex right);
|
|
+ public static explicit operator Complex (Decimal value);
|
|
+ public static explicit operator Complex (BigInteger value);
|
|
+ public static implicit operator Complex (byte value);
|
|
+ public static implicit operator Complex (double value);
|
|
+ public static implicit operator Complex (short value);
|
|
+ public static implicit operator Complex (int value);
|
|
+ public static implicit operator Complex (long value);
|
|
+ public static implicit operator Complex (sbyte value);
|
|
+ public static implicit operator Complex (float value);
|
|
+ public static implicit operator Complex (ushort value);
|
|
+ public static implicit operator Complex (uint value);
|
|
+ public static implicit operator Complex (ulong value);
|
|
+ public static bool operator !=(Complex left, Complex right);
|
|
+ public static Complex operator *(Complex left, Complex right);
|
|
+ public static Complex operator -(Complex left, Complex right);
|
|
+ public static Complex operator -(Complex value);
|
|
+ public static Complex Pow(Complex value, double power);
|
|
+ public static Complex Pow(Complex value, Complex power);
|
|
+ public static Complex Reciprocal(Complex value);
|
|
+ public static Complex Sin(Complex value);
|
|
+ public static Complex Sinh(Complex value);
|
|
+ public static Complex Sqrt(Complex value);
|
|
+ public static Complex Subtract(Complex left, Complex right);
|
|
+ public static Complex Tan(Complex value);
|
|
+ public static Complex Tanh(Complex value);
|
|
+ public override string ToString();
|
|
+ public string ToString(IFormatProvider provider);
|
|
+ public string ToString(string format);
|
|
+ public string ToString(string format, IFormatProvider provider);
|
|
+ }
|
|
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
|
|
+ public struct Matrix3x2 : IEquatable<Matrix3x2> {
|
|
+ public float M11;
|
|
+ public float M12;
|
|
+ public float M21;
|
|
+ public float M22;
|
|
+ public float M31;
|
|
+ public float M32;
|
|
+ public Matrix3x2(float m11, float m12, float m21, float m22, float m31, float m32);
|
|
+ public static Matrix3x2 Identity { get; }
|
|
+ public bool IsIdentity { get; }
|
|
+ public Vector2 Translation { get; set; }
|
|
+ public static Matrix3x2 Add(Matrix3x2 value1, Matrix3x2 value2);
|
|
+ public static Matrix3x2 CreateRotation(float radians);
|
|
+ public static Matrix3x2 CreateRotation(float radians, Vector2 centerPoint);
|
|
+ public static Matrix3x2 CreateScale(Vector2 scales);
|
|
+ public static Matrix3x2 CreateScale(Vector2 scales, Vector2 centerPoint);
|
|
+ public static Matrix3x2 CreateScale(float scale);
|
|
+ public static Matrix3x2 CreateScale(float scale, Vector2 centerPoint);
|
|
+ public static Matrix3x2 CreateScale(float xScale, float yScale);
|
|
+ public static Matrix3x2 CreateScale(float xScale, float yScale, Vector2 centerPoint);
|
|
+ public static Matrix3x2 CreateSkew(float radiansX, float radiansY);
|
|
+ public static Matrix3x2 CreateSkew(float radiansX, float radiansY, Vector2 centerPoint);
|
|
+ public static Matrix3x2 CreateTranslation(Vector2 position);
|
|
+ public static Matrix3x2 CreateTranslation(float xPosition, float yPosition);
|
|
+ public bool Equals(Matrix3x2 other);
|
|
+ public override bool Equals(object obj);
|
|
+ public float GetDeterminant();
|
|
+ public override int GetHashCode();
|
|
+ public static bool Invert(Matrix3x2 matrix, out Matrix3x2 result);
|
|
+ public static Matrix3x2 Lerp(Matrix3x2 matrix1, Matrix3x2 matrix2, float amount);
|
|
+ public static Matrix3x2 Multiply(Matrix3x2 value1, Matrix3x2 value2);
|
|
+ public static Matrix3x2 Multiply(Matrix3x2 value1, float value2);
|
|
+ public static Matrix3x2 Negate(Matrix3x2 value);
|
|
+ public static Matrix3x2 operator +(Matrix3x2 value1, Matrix3x2 value2);
|
|
+ public static bool operator ==(Matrix3x2 value1, Matrix3x2 value2);
|
|
+ public static bool operator !=(Matrix3x2 value1, Matrix3x2 value2);
|
|
+ public static Matrix3x2 operator *(Matrix3x2 value1, Matrix3x2 value2);
|
|
+ public static Matrix3x2 operator *(Matrix3x2 value1, float value2);
|
|
+ public static Matrix3x2 operator -(Matrix3x2 value1, Matrix3x2 value2);
|
|
+ public static Matrix3x2 operator -(Matrix3x2 value);
|
|
+ public static Matrix3x2 Subtract(Matrix3x2 value1, Matrix3x2 value2);
|
|
+ public override string ToString();
|
|
+ }
|
|
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
|
|
+ public struct Matrix4x4 : IEquatable<Matrix4x4> {
|
|
+ public float M11;
|
|
+ public float M12;
|
|
+ public float M13;
|
|
+ public float M14;
|
|
+ public float M21;
|
|
+ public float M22;
|
|
+ public float M23;
|
|
+ public float M24;
|
|
+ public float M31;
|
|
+ public float M32;
|
|
+ public float M33;
|
|
+ public float M34;
|
|
+ public float M41;
|
|
+ public float M42;
|
|
+ public float M43;
|
|
+ public float M44;
|
|
+ public Matrix4x4(Matrix3x2 value);
|
|
+ public Matrix4x4(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44);
|
|
+ public static Matrix4x4 Identity { get; }
|
|
+ public bool IsIdentity { get; }
|
|
+ public Vector3 Translation { get; set; }
|
|
+ public static Matrix4x4 Add(Matrix4x4 value1, Matrix4x4 value2);
|
|
+ public static Matrix4x4 CreateBillboard(Vector3 objectPosition, Vector3 cameraPosition, Vector3 cameraUpVector, Vector3 cameraForwardVector);
|
|
+ public static Matrix4x4 CreateConstrainedBillboard(Vector3 objectPosition, Vector3 cameraPosition, Vector3 rotateAxis, Vector3 cameraForwardVector, Vector3 objectForwardVector);
|
|
+ public static Matrix4x4 CreateFromAxisAngle(Vector3 axis, float angle);
|
|
+ public static Matrix4x4 CreateFromQuaternion(Quaternion quaternion);
|
|
+ public static Matrix4x4 CreateFromYawPitchRoll(float yaw, float pitch, float roll);
|
|
+ public static Matrix4x4 CreateLookAt(Vector3 cameraPosition, Vector3 cameraTarget, Vector3 cameraUpVector);
|
|
+ public static Matrix4x4 CreateOrthographic(float width, float height, float zNearPlane, float zFarPlane);
|
|
+ public static Matrix4x4 CreateOrthographicOffCenter(float left, float right, float bottom, float top, float zNearPlane, float zFarPlane);
|
|
+ public static Matrix4x4 CreatePerspective(float width, float height, float nearPlaneDistance, float farPlaneDistance);
|
|
+ public static Matrix4x4 CreatePerspectiveFieldOfView(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance);
|
|
+ public static Matrix4x4 CreatePerspectiveOffCenter(float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance);
|
|
+ public static Matrix4x4 CreateReflection(Plane value);
|
|
+ public static Matrix4x4 CreateRotationX(float radians);
|
|
+ public static Matrix4x4 CreateRotationX(float radians, Vector3 centerPoint);
|
|
+ public static Matrix4x4 CreateRotationY(float radians);
|
|
+ public static Matrix4x4 CreateRotationY(float radians, Vector3 centerPoint);
|
|
+ public static Matrix4x4 CreateRotationZ(float radians);
|
|
+ public static Matrix4x4 CreateRotationZ(float radians, Vector3 centerPoint);
|
|
+ public static Matrix4x4 CreateScale(Vector3 scales);
|
|
+ public static Matrix4x4 CreateScale(Vector3 scales, Vector3 centerPoint);
|
|
+ public static Matrix4x4 CreateScale(float scale);
|
|
+ public static Matrix4x4 CreateScale(float scale, Vector3 centerPoint);
|
|
+ public static Matrix4x4 CreateScale(float xScale, float yScale, float zScale);
|
|
+ public static Matrix4x4 CreateScale(float xScale, float yScale, float zScale, Vector3 centerPoint);
|
|
+ public static Matrix4x4 CreateShadow(Vector3 lightDirection, Plane plane);
|
|
+ public static Matrix4x4 CreateTranslation(Vector3 position);
|
|
+ public static Matrix4x4 CreateTranslation(float xPosition, float yPosition, float zPosition);
|
|
+ public static Matrix4x4 CreateWorld(Vector3 position, Vector3 forward, Vector3 up);
|
|
+ public static bool Decompose(Matrix4x4 matrix, out Vector3 scale, out Quaternion rotation, out Vector3 translation);
|
|
+ public bool Equals(Matrix4x4 other);
|
|
+ public override bool Equals(object obj);
|
|
+ public float GetDeterminant();
|
|
+ public override int GetHashCode();
|
|
+ public static bool Invert(Matrix4x4 matrix, out Matrix4x4 result);
|
|
+ public static Matrix4x4 Lerp(Matrix4x4 matrix1, Matrix4x4 matrix2, float amount);
|
|
+ public static Matrix4x4 Multiply(Matrix4x4 value1, Matrix4x4 value2);
|
|
+ public static Matrix4x4 Multiply(Matrix4x4 value1, float value2);
|
|
+ public static Matrix4x4 Negate(Matrix4x4 value);
|
|
+ public static Matrix4x4 operator +(Matrix4x4 value1, Matrix4x4 value2);
|
|
+ public static bool operator ==(Matrix4x4 value1, Matrix4x4 value2);
|
|
+ public static bool operator !=(Matrix4x4 value1, Matrix4x4 value2);
|
|
+ public static Matrix4x4 operator *(Matrix4x4 value1, Matrix4x4 value2);
|
|
+ public static Matrix4x4 operator *(Matrix4x4 value1, float value2);
|
|
+ public static Matrix4x4 operator -(Matrix4x4 value1, Matrix4x4 value2);
|
|
+ public static Matrix4x4 operator -(Matrix4x4 value);
|
|
+ public static Matrix4x4 Subtract(Matrix4x4 value1, Matrix4x4 value2);
|
|
+ public override string ToString();
|
|
+ public static Matrix4x4 Transform(Matrix4x4 value, Quaternion rotation);
|
|
+ public static Matrix4x4 Transpose(Matrix4x4 matrix);
|
|
+ }
|
|
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
|
|
+ public struct Plane : IEquatable<Plane> {
|
|
+ public Vector3 Normal;
|
|
+ public float D;
|
|
+ public Plane(Vector3 normal, float d);
|
|
+ public Plane(Vector4 value);
|
|
+ public Plane(float x, float y, float z, float d);
|
|
+ public static Plane CreateFromVertices(Vector3 point1, Vector3 point2, Vector3 point3);
|
|
+ public static float Dot(Plane plane, Vector4 value);
|
|
+ public static float DotCoordinate(Plane plane, Vector3 value);
|
|
+ public static float DotNormal(Plane plane, Vector3 value);
|
|
+ public bool Equals(Plane other);
|
|
+ public override bool Equals(object obj);
|
|
+ public override int GetHashCode();
|
|
+ public static Plane Normalize(Plane value);
|
|
+ public static bool operator ==(Plane value1, Plane value2);
|
|
+ public static bool operator !=(Plane value1, Plane value2);
|
|
+ public override string ToString();
|
|
+ public static Plane Transform(Plane plane, Matrix4x4 matrix);
|
|
+ public static Plane Transform(Plane plane, Quaternion rotation);
|
|
+ }
|
|
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
|
|
+ public struct Quaternion : IEquatable<Quaternion> {
|
|
+ public float W;
|
|
+ public float X;
|
|
+ public float Y;
|
|
+ public float Z;
|
|
+ public Quaternion(Vector3 vectorPart, float scalarPart);
|
|
+ public Quaternion(float x, float y, float z, float w);
|
|
+ public static Quaternion Identity { get; }
|
|
+ public bool IsIdentity { get; }
|
|
+ public static Quaternion Add(Quaternion value1, Quaternion value2);
|
|
+ public static Quaternion Concatenate(Quaternion value1, Quaternion value2);
|
|
+ public static Quaternion Conjugate(Quaternion value);
|
|
+ public static Quaternion CreateFromAxisAngle(Vector3 axis, float angle);
|
|
+ public static Quaternion CreateFromRotationMatrix(Matrix4x4 matrix);
|
|
+ public static Quaternion CreateFromYawPitchRoll(float yaw, float pitch, float roll);
|
|
+ public static Quaternion Divide(Quaternion value1, Quaternion value2);
|
|
+ public static float Dot(Quaternion quaternion1, Quaternion quaternion2);
|
|
+ public bool Equals(Quaternion other);
|
|
+ public override bool Equals(object obj);
|
|
+ public override int GetHashCode();
|
|
+ public static Quaternion Inverse(Quaternion value);
|
|
+ public float Length();
|
|
+ public float LengthSquared();
|
|
+ public static Quaternion Lerp(Quaternion quaternion1, Quaternion quaternion2, float amount);
|
|
+ public static Quaternion Multiply(Quaternion value1, Quaternion value2);
|
|
+ public static Quaternion Multiply(Quaternion value1, float value2);
|
|
+ public static Quaternion Negate(Quaternion value);
|
|
+ public static Quaternion Normalize(Quaternion value);
|
|
+ public static Quaternion operator +(Quaternion value1, Quaternion value2);
|
|
+ public static Quaternion operator /(Quaternion value1, Quaternion value2);
|
|
+ public static bool operator ==(Quaternion value1, Quaternion value2);
|
|
+ public static bool operator !=(Quaternion value1, Quaternion value2);
|
|
+ public static Quaternion operator *(Quaternion value1, Quaternion value2);
|
|
+ public static Quaternion operator *(Quaternion value1, float value2);
|
|
+ public static Quaternion operator -(Quaternion value1, Quaternion value2);
|
|
+ public static Quaternion operator -(Quaternion value);
|
|
+ public static Quaternion Slerp(Quaternion quaternion1, Quaternion quaternion2, float amount);
|
|
+ public static Quaternion Subtract(Quaternion value1, Quaternion value2);
|
|
+ public override string ToString();
|
|
+ }
|
|
+ public static class Vector {
|
|
+ public static bool IsHardwareAccelerated { get; }
|
|
+ public static Vector<T> Abs<T>(Vector<T> value) where T : struct, ValueType;
|
|
+ public static Vector<T> Add<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static Vector<T> AndNot<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static Vector<byte> AsVectorByte<T>(Vector<T> value) where T : struct, ValueType;
|
|
+ public static Vector<double> AsVectorDouble<T>(Vector<T> value) where T : struct, ValueType;
|
|
+ public static Vector<short> AsVectorInt16<T>(Vector<T> value) where T : struct, ValueType;
|
|
+ public static Vector<int> AsVectorInt32<T>(Vector<T> value) where T : struct, ValueType;
|
|
+ public static Vector<long> AsVectorInt64<T>(Vector<T> value) where T : struct, ValueType;
|
|
+ public static Vector<sbyte> AsVectorSByte<T>(Vector<T> value) where T : struct, ValueType;
|
|
+ public static Vector<float> AsVectorSingle<T>(Vector<T> value) where T : struct, ValueType;
|
|
+ public static Vector<ushort> AsVectorUInt16<T>(Vector<T> value) where T : struct, ValueType;
|
|
+ public static Vector<uint> AsVectorUInt32<T>(Vector<T> value) where T : struct, ValueType;
|
|
+ public static Vector<ulong> AsVectorUInt64<T>(Vector<T> value) where T : struct, ValueType;
|
|
+ public static Vector<T> BitwiseAnd<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static Vector<T> BitwiseOr<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static Vector<float> ConditionalSelect(Vector<int> condition, Vector<float> left, Vector<float> right);
|
|
+ public static Vector<double> ConditionalSelect(Vector<long> condition, Vector<double> left, Vector<double> right);
|
|
+ public static Vector<T> ConditionalSelect<T>(Vector<T> condition, Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static Vector<T> Divide<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static T Dot<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static Vector<long> Equals(Vector<double> left, Vector<double> right);
|
|
+ public static Vector<int> Equals(Vector<int> left, Vector<int> right);
|
|
+ public static Vector<long> Equals(Vector<long> left, Vector<long> right);
|
|
+ public static Vector<int> Equals(Vector<float> left, Vector<float> right);
|
|
+ public static Vector<T> Equals<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static bool EqualsAll<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static bool EqualsAny<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static Vector<long> GreaterThan(Vector<double> left, Vector<double> right);
|
|
+ public static Vector<int> GreaterThan(Vector<int> left, Vector<int> right);
|
|
+ public static Vector<long> GreaterThan(Vector<long> left, Vector<long> right);
|
|
+ public static Vector<int> GreaterThan(Vector<float> left, Vector<float> right);
|
|
+ public static Vector<T> GreaterThan<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static bool GreaterThanAll<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static bool GreaterThanAny<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static Vector<long> GreaterThanOrEqual(Vector<double> left, Vector<double> right);
|
|
+ public static Vector<int> GreaterThanOrEqual(Vector<int> left, Vector<int> right);
|
|
+ public static Vector<long> GreaterThanOrEqual(Vector<long> left, Vector<long> right);
|
|
+ public static Vector<int> GreaterThanOrEqual(Vector<float> left, Vector<float> right);
|
|
+ public static Vector<T> GreaterThanOrEqual<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static bool GreaterThanOrEqualAll<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static bool GreaterThanOrEqualAny<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static Vector<long> LessThan(Vector<double> left, Vector<double> right);
|
|
+ public static Vector<int> LessThan(Vector<int> left, Vector<int> right);
|
|
+ public static Vector<long> LessThan(Vector<long> left, Vector<long> right);
|
|
+ public static Vector<int> LessThan(Vector<float> left, Vector<float> right);
|
|
+ public static Vector<T> LessThan<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static bool LessThanAll<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static bool LessThanAny<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static Vector<long> LessThanOrEqual(Vector<double> left, Vector<double> right);
|
|
+ public static Vector<int> LessThanOrEqual(Vector<int> left, Vector<int> right);
|
|
+ public static Vector<long> LessThanOrEqual(Vector<long> left, Vector<long> right);
|
|
+ public static Vector<int> LessThanOrEqual(Vector<float> left, Vector<float> right);
|
|
+ public static Vector<T> LessThanOrEqual<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static bool LessThanOrEqualAll<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static bool LessThanOrEqualAny<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static Vector<T> Max<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static Vector<T> Min<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static Vector<T> Multiply<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static Vector<T> Multiply<T>(Vector<T> left, T right) where T : struct, ValueType;
|
|
+ public static Vector<T> Multiply<T>(T left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static Vector<T> Negate<T>(Vector<T> value) where T : struct, ValueType;
|
|
+ public static Vector<T> OnesComplement<T>(Vector<T> value) where T : struct, ValueType;
|
|
+ public static Vector<T> SquareRoot<T>(Vector<T> value) where T : struct, ValueType;
|
|
+ public static Vector<T> Subtract<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ public static Vector<T> Xor<T>(Vector<T> left, Vector<T> right) where T : struct, ValueType;
|
|
+ }
|
|
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
|
|
+ public struct Vector<T> : IEquatable<Vector<T>>, IFormattable where T : struct, ValueType {
|
|
+ public Vector(T value);
|
|
+ public Vector(T[] values);
|
|
+ public Vector(T[] values, int index);
|
|
+ public static int Count { get; }
|
|
+ public static Vector<T> One { get; }
|
|
+ public T this[int index] { get; }
|
|
+ public static Vector<T> Zero { get; }
|
|
+ public void CopyTo(T[] destination);
|
|
+ public void CopyTo(T[] destination, int startIndex);
|
|
+ public bool Equals(Vector<T> other);
|
|
+ public override bool Equals(object obj);
|
|
+ public override int GetHashCode();
|
|
+ public static Vector<T> operator +(Vector<T> left, Vector<T> right);
|
|
+ public static Vector<T> operator &(Vector<T> left, Vector<T> right);
|
|
+ public static Vector<T> operator |(Vector<T> left, Vector<T> right);
|
|
+ public static Vector<T> operator /(Vector<T> left, Vector<T> right);
|
|
+ public static bool operator ==(Vector<T> left, Vector<T> right);
|
|
+ public static Vector<T> operator ^(Vector<T> left, Vector<T> right);
|
|
+ public static explicit operator Vector<byte> (Vector<T> value);
|
|
+ public static explicit operator Vector<double> (Vector<T> value);
|
|
+ public static explicit operator Vector<short> (Vector<T> value);
|
|
+ public static explicit operator Vector<int> (Vector<T> value);
|
|
+ public static explicit operator Vector<long> (Vector<T> value);
|
|
+ public static explicit operator Vector<sbyte> (Vector<T> value);
|
|
+ public static explicit operator Vector<float> (Vector<T> value);
|
|
+ public static explicit operator Vector<ushort> (Vector<T> value);
|
|
+ public static explicit operator Vector<uint> (Vector<T> value);
|
|
+ public static explicit operator Vector<ulong> (Vector<T> value);
|
|
+ public static bool operator !=(Vector<T> left, Vector<T> right);
|
|
+ public static Vector<T> operator *(Vector<T> left, Vector<T> right);
|
|
+ public static Vector<T> operator *(Vector<T> value, T factor);
|
|
+ public static Vector<T> operator *(T factor, Vector<T> value);
|
|
+ public static Vector<T> operator ~(Vector<T> value);
|
|
+ public static Vector<T> operator -(Vector<T> left, Vector<T> right);
|
|
+ public static Vector<T> operator -(Vector<T> value);
|
|
+ public override string ToString();
|
|
+ public string ToString(string format);
|
|
+ public string ToString(string format, IFormatProvider formatProvider);
|
|
+ }
|
|
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
|
|
+ public struct Vector2 : IEquatable<Vector2>, IFormattable {
|
|
+ public float X;
|
|
+ public float Y;
|
|
+ public Vector2(float value);
|
|
+ public Vector2(float x, float y);
|
|
+ public static Vector2 One { get; }
|
|
+ public static Vector2 UnitX { get; }
|
|
+ public static Vector2 UnitY { get; }
|
|
+ public static Vector2 Zero { get; }
|
|
+ public static Vector2 Abs(Vector2 value);
|
|
+ public static Vector2 Add(Vector2 left, Vector2 right);
|
|
+ public static Vector2 Clamp(Vector2 value1, Vector2 min, Vector2 max);
|
|
+ public void CopyTo(float[] array);
|
|
+ public void CopyTo(float[] array, int index);
|
|
+ public static float Distance(Vector2 value1, Vector2 value2);
|
|
+ public static float DistanceSquared(Vector2 value1, Vector2 value2);
|
|
+ public static Vector2 Divide(Vector2 left, Vector2 right);
|
|
+ public static Vector2 Divide(Vector2 left, float divisor);
|
|
+ public static float Dot(Vector2 value1, Vector2 value2);
|
|
+ public bool Equals(Vector2 other);
|
|
+ public override bool Equals(object obj);
|
|
+ public override int GetHashCode();
|
|
+ public float Length();
|
|
+ public float LengthSquared();
|
|
+ public static Vector2 Lerp(Vector2 value1, Vector2 value2, float amount);
|
|
+ public static Vector2 Max(Vector2 value1, Vector2 value2);
|
|
+ public static Vector2 Min(Vector2 value1, Vector2 value2);
|
|
+ public static Vector2 Multiply(Vector2 left, Vector2 right);
|
|
+ public static Vector2 Multiply(Vector2 left, float right);
|
|
+ public static Vector2 Multiply(float left, Vector2 right);
|
|
+ public static Vector2 Negate(Vector2 value);
|
|
+ public static Vector2 Normalize(Vector2 value);
|
|
+ public static Vector2 operator +(Vector2 left, Vector2 right);
|
|
+ public static Vector2 operator /(Vector2 left, Vector2 right);
|
|
+ public static Vector2 operator /(Vector2 value1, float value2);
|
|
+ public static bool operator ==(Vector2 left, Vector2 right);
|
|
+ public static bool operator !=(Vector2 left, Vector2 right);
|
|
+ public static Vector2 operator *(Vector2 left, Vector2 right);
|
|
+ public static Vector2 operator *(Vector2 left, float right);
|
|
+ public static Vector2 operator *(float left, Vector2 right);
|
|
+ public static Vector2 operator -(Vector2 left, Vector2 right);
|
|
+ public static Vector2 operator -(Vector2 value);
|
|
+ public static Vector2 Reflect(Vector2 vector, Vector2 normal);
|
|
+ public static Vector2 SquareRoot(Vector2 value);
|
|
+ public static Vector2 Subtract(Vector2 left, Vector2 right);
|
|
+ public override string ToString();
|
|
+ public string ToString(string format);
|
|
+ public string ToString(string format, IFormatProvider formatProvider);
|
|
+ public static Vector2 Transform(Vector2 position, Matrix3x2 matrix);
|
|
+ public static Vector2 Transform(Vector2 position, Matrix4x4 matrix);
|
|
+ public static Vector2 Transform(Vector2 value, Quaternion rotation);
|
|
+ public static Vector2 TransformNormal(Vector2 normal, Matrix3x2 matrix);
|
|
+ public static Vector2 TransformNormal(Vector2 normal, Matrix4x4 matrix);
|
|
+ }
|
|
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
|
|
+ public struct Vector3 : IEquatable<Vector3>, IFormattable {
|
|
+ public float X;
|
|
+ public float Y;
|
|
+ public float Z;
|
|
+ public Vector3(Vector2 value, float z);
|
|
+ public Vector3(float value);
|
|
+ public Vector3(float x, float y, float z);
|
|
+ public static Vector3 One { get; }
|
|
+ public static Vector3 UnitX { get; }
|
|
+ public static Vector3 UnitY { get; }
|
|
+ public static Vector3 UnitZ { get; }
|
|
+ public static Vector3 Zero { get; }
|
|
+ public static Vector3 Abs(Vector3 value);
|
|
+ public static Vector3 Add(Vector3 left, Vector3 right);
|
|
+ public static Vector3 Clamp(Vector3 value1, Vector3 min, Vector3 max);
|
|
+ public void CopyTo(float[] array);
|
|
+ public void CopyTo(float[] array, int index);
|
|
+ public static Vector3 Cross(Vector3 vector1, Vector3 vector2);
|
|
+ public static float Distance(Vector3 value1, Vector3 value2);
|
|
+ public static float DistanceSquared(Vector3 value1, Vector3 value2);
|
|
+ public static Vector3 Divide(Vector3 left, Vector3 right);
|
|
+ public static Vector3 Divide(Vector3 left, float divisor);
|
|
+ public static float Dot(Vector3 vector1, Vector3 vector2);
|
|
+ public bool Equals(Vector3 other);
|
|
+ public override bool Equals(object obj);
|
|
+ public override int GetHashCode();
|
|
+ public float Length();
|
|
+ public float LengthSquared();
|
|
+ public static Vector3 Lerp(Vector3 value1, Vector3 value2, float amount);
|
|
+ public static Vector3 Max(Vector3 value1, Vector3 value2);
|
|
+ public static Vector3 Min(Vector3 value1, Vector3 value2);
|
|
+ public static Vector3 Multiply(Vector3 left, Vector3 right);
|
|
+ public static Vector3 Multiply(Vector3 left, float right);
|
|
+ public static Vector3 Multiply(float left, Vector3 right);
|
|
+ public static Vector3 Negate(Vector3 value);
|
|
+ public static Vector3 Normalize(Vector3 value);
|
|
+ public static Vector3 operator +(Vector3 left, Vector3 right);
|
|
+ public static Vector3 operator /(Vector3 left, Vector3 right);
|
|
+ public static Vector3 operator /(Vector3 value1, float value2);
|
|
+ public static bool operator ==(Vector3 left, Vector3 right);
|
|
+ public static bool operator !=(Vector3 left, Vector3 right);
|
|
+ public static Vector3 operator *(Vector3 left, Vector3 right);
|
|
+ public static Vector3 operator *(Vector3 left, float right);
|
|
+ public static Vector3 operator *(float left, Vector3 right);
|
|
+ public static Vector3 operator -(Vector3 left, Vector3 right);
|
|
+ public static Vector3 operator -(Vector3 value);
|
|
+ public static Vector3 Reflect(Vector3 vector, Vector3 normal);
|
|
+ public static Vector3 SquareRoot(Vector3 value);
|
|
+ public static Vector3 Subtract(Vector3 left, Vector3 right);
|
|
+ public override string ToString();
|
|
+ public string ToString(string format);
|
|
+ public string ToString(string format, IFormatProvider formatProvider);
|
|
+ public static Vector3 Transform(Vector3 position, Matrix4x4 matrix);
|
|
+ public static Vector3 Transform(Vector3 value, Quaternion rotation);
|
|
+ public static Vector3 TransformNormal(Vector3 normal, Matrix4x4 matrix);
|
|
+ }
|
|
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
|
|
+ public struct Vector4 : IEquatable<Vector4>, IFormattable {
|
|
+ public float W;
|
|
+ public float X;
|
|
+ public float Y;
|
|
+ public float Z;
|
|
+ public Vector4(Vector2 value, float z, float w);
|
|
+ public Vector4(Vector3 value, float w);
|
|
+ public Vector4(float value);
|
|
+ public Vector4(float x, float y, float z, float w);
|
|
+ public static Vector4 One { get; }
|
|
+ public static Vector4 UnitW { get; }
|
|
+ public static Vector4 UnitX { get; }
|
|
+ public static Vector4 UnitY { get; }
|
|
+ public static Vector4 UnitZ { get; }
|
|
+ public static Vector4 Zero { get; }
|
|
+ public static Vector4 Abs(Vector4 value);
|
|
+ public static Vector4 Add(Vector4 left, Vector4 right);
|
|
+ public static Vector4 Clamp(Vector4 value1, Vector4 min, Vector4 max);
|
|
+ public void CopyTo(float[] array);
|
|
+ public void CopyTo(float[] array, int index);
|
|
+ public static float Distance(Vector4 value1, Vector4 value2);
|
|
+ public static float DistanceSquared(Vector4 value1, Vector4 value2);
|
|
+ public static Vector4 Divide(Vector4 left, Vector4 right);
|
|
+ public static Vector4 Divide(Vector4 left, float divisor);
|
|
+ public static float Dot(Vector4 vector1, Vector4 vector2);
|
|
+ public bool Equals(Vector4 other);
|
|
+ public override bool Equals(object obj);
|
|
+ public override int GetHashCode();
|
|
+ public float Length();
|
|
+ public float LengthSquared();
|
|
+ public static Vector4 Lerp(Vector4 value1, Vector4 value2, float amount);
|
|
+ public static Vector4 Max(Vector4 value1, Vector4 value2);
|
|
+ public static Vector4 Min(Vector4 value1, Vector4 value2);
|
|
+ public static Vector4 Multiply(Vector4 left, Vector4 right);
|
|
+ public static Vector4 Multiply(Vector4 left, float right);
|
|
+ public static Vector4 Multiply(float left, Vector4 right);
|
|
+ public static Vector4 Negate(Vector4 value);
|
|
+ public static Vector4 Normalize(Vector4 vector);
|
|
+ public static Vector4 operator +(Vector4 left, Vector4 right);
|
|
+ public static Vector4 operator /(Vector4 left, Vector4 right);
|
|
+ public static Vector4 operator /(Vector4 value1, float value2);
|
|
+ public static bool operator ==(Vector4 left, Vector4 right);
|
|
+ public static bool operator !=(Vector4 left, Vector4 right);
|
|
+ public static Vector4 operator *(Vector4 left, Vector4 right);
|
|
+ public static Vector4 operator *(Vector4 left, float right);
|
|
+ public static Vector4 operator *(float left, Vector4 right);
|
|
+ public static Vector4 operator -(Vector4 left, Vector4 right);
|
|
+ public static Vector4 operator -(Vector4 value);
|
|
+ public static Vector4 SquareRoot(Vector4 value);
|
|
+ public static Vector4 Subtract(Vector4 left, Vector4 right);
|
|
+ public override string ToString();
|
|
+ public string ToString(string format);
|
|
+ public string ToString(string format, IFormatProvider formatProvider);
|
|
+ public static Vector4 Transform(Vector2 position, Matrix4x4 matrix);
|
|
+ public static Vector4 Transform(Vector2 value, Quaternion rotation);
|
|
+ public static Vector4 Transform(Vector3 position, Matrix4x4 matrix);
|
|
+ public static Vector4 Transform(Vector3 value, Quaternion rotation);
|
|
+ public static Vector4 Transform(Vector4 vector, Matrix4x4 matrix);
|
|
+ public static Vector4 Transform(Vector4 value, Quaternion rotation);
|
|
+ }
|
|
+}
|
|
```
|
|
|