Struct Vector4
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Vim.Math3d
Assembly: Vim.Math3D.dll
[DataContract]
public readonly struct Vector4 : IEquatable<Vector4>, IComparable<Vector4>, ITransformable3D<Vector4>
Constructors
View SourceVector4(Single)
public Vector4(float value)
Vector4(Single, Single, Single, Single)
public Vector4(float x, float y, float z, float w)
Vector4((Single x, Single y, Single z, Single w))
public Vector4((float x, float y, float z, float w) tuple)
Vector4(Vector2, Single, Single)
public Vector4(Vector2 v, float z, float w)
Vector4(Vector3, Single)
public Vector4(Vector3 v, float w)
Fields
View SourceMaxValue
public static Vector4 MaxValue
MinValue
public static Vector4 MinValue
NumComponents
public const int NumComponents = 4
One
public static Vector4 One
UnitW
public static Vector4 UnitW
UnitX
public static Vector4 UnitX
UnitY
public static Vector4 UnitY
UnitZ
public static Vector4 UnitZ
W
[DataMember]
public readonly float W
X
[DataMember]
public readonly float X
Y
[DataMember]
public readonly float Y
Z
[DataMember]
public readonly float Z
Zero
public static Vector4 Zero
Properties
View SourceXY
public readonly Vector2 XY { get; }
XYZ
public readonly Vector3 XYZ { get; }
Methods
View SourceAlmostEquals(Vector4, Single)
public readonly bool AlmostEquals(Vector4 x, float tolerance = 1E-07F)
AlmostZero(Single)
public readonly bool AlmostZero(float tolerance = 1E-07F)
AnyComponentNegative()
public readonly bool AnyComponentNegative()
CompareTo(Vector4)
public readonly int CompareTo(Vector4 x)
Create(Single, Single, Single, Single)
public static Vector4 Create(float x, float y, float z, float w)
Create((Single x, Single y, Single z, Single w))
public static Vector4 Create((float x, float y, float z, float w) tuple)
Deconstruct(out Single, out Single, out Single, out Single)
public readonly void Deconstruct(out float x, out float y, out float z, out float w)
Dot(Vector4)
public readonly float Dot(Vector4 value)
Dot(Vector4, Vector4)
public static float Dot(Vector4 value1, Vector4 value2)
Equals(Object)
public override readonly bool Equals(object obj)
Overrides
System.ValueType.Equals(System.Object)
View Source
Equals(Vector4)
public readonly bool Equals(Vector4 x)
GetComponent(Int32)
public readonly float GetComponent(int n)
GetHashCode()
public override readonly int GetHashCode()
Overrides
System.ValueType.GetHashCode()
View Source
IsInfinity()
public readonly bool IsInfinity()
IsNaN()
public readonly bool IsNaN()
Magnitude()
public readonly double Magnitude()
MagnitudeSquared()
public readonly double MagnitudeSquared()
MaxComponent()
public readonly float MaxComponent()
MinComponent()
public readonly float MinComponent()
ProductComponents()
public readonly float ProductComponents()
SetW(Single)
public readonly Vector4 SetW(float x)
SetX(Single)
public readonly Vector4 SetX(float x)
SetY(Single)
public readonly Vector4 SetY(float x)
SetZ(Single)
public readonly Vector4 SetZ(float x)
SumComponents()
public readonly float SumComponents()
SumSqrComponents()
public readonly float SumSqrComponents()
ToString()
public override readonly string ToString()
Overrides
System.ValueType.ToString()
View Source
Transform(Matrix4x4)
Transforms a vector by the given matrix.
public readonly Vector4 Transform(Matrix4x4 matrix)
Operators
View SourceAddition(Single, Vector4)
public static Vector4 operator +(float value1, Vector4 value2)
Addition(Vector4, Single)
public static Vector4 operator +(Vector4 value1, float value2)
Addition(Vector4, Vector4)
public static Vector4 operator +(Vector4 value1, Vector4 value2)
Division(Single, Vector4)
public static Vector4 operator /(float value1, Vector4 value2)
Division(Vector4, Single)
public static Vector4 operator /(Vector4 value1, float value2)
Division(Vector4, Vector4)
public static Vector4 operator /(Vector4 value1, Vector4 value2)
Equality(Vector4, Vector4)
public static bool operator ==(Vector4 x0, Vector4 x1)
GreaterThan(Vector4, Vector4)
public static bool operator>(Vector4 x0, Vector4 x1)
GreaterThanOrEqual(Vector4, Vector4)
public static bool operator >=(Vector4 x0, Vector4 x1)
Implicit((Single x, Single y, Single z, Single w) to Vector4)
public static implicit operator Vector4((float x, float y, float z, float w) tuple)
Implicit(Vector4 to (Single x, Single y, Single z, Single w))
public static implicit operator (float x, float y, float z, float w)(Vector4 self)
Inequality(Vector4, Vector4)
public static bool operator !=(Vector4 x0, Vector4 x1)
LessThan(Vector4, Vector4)
public static bool operator <(Vector4 x0, Vector4 x1)
LessThanOrEqual(Vector4, Vector4)
public static bool operator <=(Vector4 x0, Vector4 x1)
Multiply(Single, Vector4)
public static Vector4 operator *(float value1, Vector4 value2)
Multiply(Vector4, Single)
public static Vector4 operator *(Vector4 value1, float value2)
Multiply(Vector4, Vector4)
public static Vector4 operator *(Vector4 value1, Vector4 value2)
Subtraction(Single, Vector4)
public static Vector4 operator -(float value1, Vector4 value2)
Subtraction(Vector4, Single)
public static Vector4 operator -(Vector4 value1, float value2)
Subtraction(Vector4, Vector4)
public static Vector4 operator -(Vector4 value1, Vector4 value2)
UnaryNegation(Vector4)
public static Vector4 operator -(Vector4 value)
Implements
System.IEquatable<T>
System.IComparable<T>