Struct Vector4d
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct Vector4d : IComparable<Vector4d>, IEquatable<Vector4d>
Constructors
Vector4d(Vector4d)
Declaration
public Vector4d(Vector4d copy)
Parameters
Vector4d(Double)
Declaration
public Vector4d(double f)
Parameters
Type |
Name |
Description |
Double |
f |
|
Vector4d(Double, Double, Double, Double)
Declaration
public Vector4d(double x, double y, double z, double w)
Parameters
Vector4d(Double[])
Declaration
public Vector4d(double[] v2)
Parameters
Type |
Name |
Description |
Double[] |
v2 |
|
Fields
One
Declaration
public static readonly Vector4d One
Field Value
w
Declaration
Field Value
x
Declaration
Field Value
y
Declaration
Field Value
z
Declaration
Field Value
Zero
Declaration
public static readonly Vector4d Zero
Field Value
Properties
IsFinite
Declaration
public bool IsFinite { get; }
Property Value
IsNormalized
Declaration
public bool IsNormalized { get; }
Property Value
Item[Int32]
Declaration
public double this[int key] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
key |
|
Property Value
Length
Declaration
public double Length { get; }
Property Value
LengthL1
Declaration
public double LengthL1 { get; }
Property Value
LengthSquared
Declaration
public double LengthSquared { get; }
Property Value
Normalized
Declaration
public Vector4d Normalized { get; }
Property Value
Methods
AngleD(Vector4d)
Declaration
public double AngleD(Vector4d v2)
Parameters
Returns
AngleD(Vector4d, Vector4d)
Declaration
public static double AngleD(Vector4d v1, Vector4d v2)
Parameters
Returns
AngleR(Vector4d)
Declaration
public double AngleR(Vector4d v2)
Parameters
Returns
AngleR(Vector4d, Vector4d)
Declaration
public static double AngleR(Vector4d v1, Vector4d v2)
Parameters
Returns
CompareTo(Vector4d)
Declaration
public int CompareTo(Vector4d other)
Parameters
Returns
Distance(Vector4d)
Declaration
public double Distance(Vector4d v2)
Parameters
Returns
Distance(ref Vector4d)
Declaration
public double Distance(ref Vector4d v2)
Parameters
Returns
DistanceSquared(Vector4d)
Declaration
public double DistanceSquared(Vector4d v2)
Parameters
Returns
DistanceSquared(ref Vector4d)
Declaration
public double DistanceSquared(ref Vector4d v2)
Parameters
Returns
Dot(Vector4d)
Declaration
public double Dot(Vector4d v2)
Parameters
Returns
Dot(Vector4d, Vector4d)
Declaration
public static double Dot(Vector4d v1, Vector4d v2)
Parameters
Returns
Dot(ref Vector4d)
Declaration
public double Dot(ref Vector4d v2)
Parameters
Returns
EpsilonEqual(Vector4d, Double)
Declaration
public bool EpsilonEqual(Vector4d v2, double epsilon)
Parameters
Returns
Equals(Vector4d)
Declaration
public bool Equals(Vector4d other)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Normalize(Double)
Declaration
public double Normalize(double epsilon = 2.2204460492503131E-16)
Parameters
Type |
Name |
Description |
Double |
epsilon |
|
Returns
Round(Int32)
Declaration
public void Round(int nDecimals)
Parameters
Type |
Name |
Description |
Int32 |
nDecimals |
|
ToString()
Declaration
public override string ToString()
Returns
Overrides
ToString(String)
Declaration
public string ToString(string fmt)
Parameters
Type |
Name |
Description |
String |
fmt |
|
Returns
Operators
Addition(Vector4d, Vector4d)
Declaration
public static Vector4d operator +(Vector4d v0, Vector4d v1)
Parameters
Returns
Addition(Vector4d, Double)
Declaration
public static Vector4d operator +(Vector4d v0, double f)
Parameters
Returns
Division(Vector4d, Vector4d)
Declaration
public static Vector4d operator /(Vector4d a, Vector4d b)
Parameters
Returns
Division(Vector4d, Double)
Declaration
public static Vector4d operator /(Vector4d v, double f)
Parameters
Returns
Division(Double, Vector4d)
Declaration
public static Vector4d operator /(double f, Vector4d v)
Parameters
Returns
Equality(Vector4d, Vector4d)
Declaration
public static bool operator ==(Vector4d a, Vector4d b)
Parameters
Returns
Inequality(Vector4d, Vector4d)
Declaration
public static bool operator !=(Vector4d a, Vector4d b)
Parameters
Returns
Multiply(Vector4d, Vector4d)
Declaration
public static Vector4d operator *(Vector4d a, Vector4d b)
Parameters
Returns
Multiply(Vector4d, Double)
Declaration
public static Vector4d operator *(Vector4d v, double f)
Parameters
Returns
Multiply(Double, Vector4d)
Declaration
public static Vector4d operator *(double f, Vector4d v)
Parameters
Returns
Subtraction(Vector4d, Vector4d)
Declaration
public static Vector4d operator -(Vector4d v0, Vector4d v1)
Parameters
Returns
Subtraction(Vector4d, Double)
Declaration
public static Vector4d operator -(Vector4d v0, double f)
Parameters
Returns
UnaryNegation(Vector4d)
Declaration
public static Vector4d operator -(Vector4d v)
Parameters
Returns
Implements