Struct Vector3
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 Vector3 : IEquatable<Vector3>, IComparable<Vector3>, ITransformable3D<Vector3>
Constructors
View SourceVector3(Single)
public Vector3(float value)
Vector3(Single, Single)
public Vector3(float x, float y)
Vector3(Single, Single, Single)
public Vector3(float x, float y, float z)
Vector3((Single x, Single y, Single z))
public Vector3((float x, float y, float z) tuple)
Vector3(Vector2, Single)
public Vector3(Vector2 xy, float z)
Fields
View SourceMaxValue
public static Vector3 MaxValue
MinValue
public static Vector3 MinValue
NumComponents
public const int NumComponents = 3
One
public static Vector3 One
UnitX
public static Vector3 UnitX
UnitY
public static Vector3 UnitY
UnitZ
public static Vector3 UnitZ
X
[DataMember]
public readonly float X
Y
[DataMember]
public readonly float Y
Z
[DataMember]
public readonly float Z
Zero
public static Vector3 Zero
Properties
View SourceXY
public readonly Vector2 XY { get; }
XZ
public readonly Vector2 XZ { get; }
XZY
public readonly Vector3 XZY { get; }
YXZ
public readonly Vector3 YXZ { get; }
YZ
public readonly Vector2 YZ { get; }
YZX
public readonly Vector3 YZX { get; }
ZXY
public readonly Vector3 ZXY { get; }
ZYX
public readonly Vector3 ZYX { get; }
Methods
View SourceAlmostEquals(Vector3, Single)
public readonly bool AlmostEquals(Vector3 x, float tolerance = 1E-07F)
AlmostZero(Single)
public readonly bool AlmostZero(float tolerance = 1E-07F)
AnyComponentNegative()
public readonly bool AnyComponentNegative()
Clamp(AABox)
public readonly Vector3 Clamp(AABox box)
CompareTo(Vector3)
public readonly int CompareTo(Vector3 x)
Create(Single, Single, Single)
public static Vector3 Create(float x, float y, float z)
Create((Single x, Single y, Single z))
public static Vector3 Create((float x, float y, float z) tuple)
Cross(Vector3)
Computes the cross product of two vectors.
public readonly Vector3 Cross(Vector3 vector2)
Deconstruct(out Single, out Single, out Single)
public readonly void Deconstruct(out float x, out float y, out float z)
Dot(Vector3)
public readonly float Dot(Vector3 value)
Dot(Vector3, Vector3)
public static float Dot(Vector3 value1, Vector3 value2)
Equals(Object)
public override readonly bool Equals(object obj)
Overrides
System.ValueType.Equals(System.Object)
View Source
Equals(Vector3)
public readonly bool Equals(Vector3 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()
MixedProduct(Vector3, Vector3)
Returns the mixed product
public readonly double MixedProduct(Vector3 v1, Vector3 v2)
ProductComponents()
public readonly float ProductComponents()
Reflect(Vector3)
Returns the reflection of a vector off a surface that has the specified normal.
public readonly Vector3 Reflect(Vector3 normal)
SetX(Single)
public readonly Vector3 SetX(float x)
SetY(Single)
public readonly Vector3 SetY(float x)
SetZ(Single)
public readonly Vector3 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 Vector3 Transform(Matrix4x4 matrix)
TransformNormal(Matrix4x4)
Transforms a vector normal by the given matrix.
public readonly Vector3 TransformNormal(Matrix4x4 matrix)
Operators
View SourceAddition(Single, Vector3)
public static Vector3 operator +(float value1, Vector3 value2)
Addition(Vector3, Single)
public static Vector3 operator +(Vector3 value1, float value2)
Addition(Vector3, Vector3)
public static Vector3 operator +(Vector3 value1, Vector3 value2)
Division(Single, Vector3)
public static Vector3 operator /(float value1, Vector3 value2)
Division(Vector3, Single)
public static Vector3 operator /(Vector3 value1, float value2)
Division(Vector3, Vector3)
public static Vector3 operator /(Vector3 value1, Vector3 value2)
Equality(Vector3, Vector3)
public static bool operator ==(Vector3 x0, Vector3 x1)
GreaterThan(Vector3, Vector3)
public static bool operator>(Vector3 x0, Vector3 x1)
GreaterThanOrEqual(Vector3, Vector3)
public static bool operator >=(Vector3 x0, Vector3 x1)
Implicit((Single x, Single y, Single z) to Vector3)
public static implicit operator Vector3((float x, float y, float z) tuple)
Implicit(Vector3 to (Single x, Single y, Single z))
public static implicit operator (float x, float y, float z)(Vector3 self)
Inequality(Vector3, Vector3)
public static bool operator !=(Vector3 x0, Vector3 x1)
LessThan(Vector3, Vector3)
public static bool operator <(Vector3 x0, Vector3 x1)
LessThanOrEqual(Vector3, Vector3)
public static bool operator <=(Vector3 x0, Vector3 x1)
Multiply(Single, Vector3)
public static Vector3 operator *(float value1, Vector3 value2)
Multiply(Vector3, Single)
public static Vector3 operator *(Vector3 value1, float value2)
Multiply(Vector3, Vector3)
public static Vector3 operator *(Vector3 value1, Vector3 value2)
Subtraction(Single, Vector3)
public static Vector3 operator -(float value1, Vector3 value2)
Subtraction(Vector3, Single)
public static Vector3 operator -(Vector3 value1, float value2)
Subtraction(Vector3, Vector3)
public static Vector3 operator -(Vector3 value1, Vector3 value2)
UnaryNegation(Vector3)
public static Vector3 operator -(Vector3 value)
Implements
System.IEquatable<T>
System.IComparable<T>