Struct Vector4f
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct Vector4f : IComparable<Vector4f>, IEquatable<Vector4f>
Constructors
Vector4f(Vector4f)
Declaration
public Vector4f(Vector4f copy)
Parameters
Vector4f(Single)
Declaration
Parameters
Type |
Name |
Description |
Single |
f |
|
Vector4f(Single, Single, Single, Single)
Declaration
public Vector4f(float x, float y, float z, float w)
Parameters
Vector4f(Single[])
Declaration
public Vector4f(float[] v2)
Parameters
Type |
Name |
Description |
Single[] |
v2 |
|
Fields
One
Declaration
public static readonly Vector4f One
Field Value
w
Declaration
Field Value
x
Declaration
Field Value
y
Declaration
Field Value
z
Declaration
Field Value
Zero
Declaration
public static readonly Vector4f Zero
Field Value
Properties
IsFinite
Declaration
public bool IsFinite { get; }
Property Value
IsNormalized
Declaration
public bool IsNormalized { get; }
Property Value
Item[Int32]
Declaration
public float this[int key] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
key |
|
Property Value
Length
Declaration
public float Length { get; }
Property Value
LengthL1
Declaration
public float LengthL1 { get; }
Property Value
LengthSquared
Declaration
public float LengthSquared { get; }
Property Value
Normalized
Declaration
public Vector4f Normalized { get; }
Property Value
Methods
AngleD(Vector4f)
Declaration
public float AngleD(Vector4f v2)
Parameters
Returns
AngleD(Vector4f, Vector4f)
Declaration
public static float AngleD(Vector4f v1, Vector4f v2)
Parameters
Returns
AngleR(Vector4f)
Declaration
public float AngleR(Vector4f v2)
Parameters
Returns
AngleR(Vector4f, Vector4f)
Declaration
public static float AngleR(Vector4f v1, Vector4f v2)
Parameters
Returns
CompareTo(Vector4f)
Declaration
public int CompareTo(Vector4f other)
Parameters
Returns
Distance(Vector4f)
Declaration
public float Distance(Vector4f v2)
Parameters
Returns
Distance(ref Vector4f)
Declaration
public float Distance(ref Vector4f v2)
Parameters
Returns
DistanceSquared(Vector4f)
Declaration
public float DistanceSquared(Vector4f v2)
Parameters
Returns
DistanceSquared(ref Vector4f)
Declaration
public float DistanceSquared(ref Vector4f v2)
Parameters
Returns
Dot(Vector4f)
Declaration
public float Dot(Vector4f v2)
Parameters
Returns
Dot(Vector4f, Vector4f)
Declaration
public static float Dot(Vector4f v1, Vector4f v2)
Parameters
Returns
Dot(ref Vector4f)
Declaration
public float Dot(ref Vector4f v2)
Parameters
Returns
EpsilonEqual(Vector4f, Single)
Declaration
public bool EpsilonEqual(Vector4f v2, float epsilon)
Parameters
Returns
Equals(Vector4f)
Declaration
public bool Equals(Vector4f 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(Single)
Declaration
public float Normalize(float epsilon = 1.1920929E-07F)
Parameters
Type |
Name |
Description |
Single |
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(Vector4f, Vector4f)
Declaration
public static Vector4f operator +(Vector4f v0, Vector4f v1)
Parameters
Returns
Addition(Vector4f, Single)
Declaration
public static Vector4f operator +(Vector4f v0, float f)
Parameters
Returns
Division(Vector4f, Vector4f)
Declaration
public static Vector4f operator /(Vector4f a, Vector4f b)
Parameters
Returns
Division(Vector4f, Single)
Declaration
public static Vector4f operator /(Vector4f v, float f)
Parameters
Returns
Division(Single, Vector4f)
Declaration
public static Vector4f operator /(float f, Vector4f v)
Parameters
Returns
Equality(Vector4f, Vector4f)
Declaration
public static bool operator ==(Vector4f a, Vector4f b)
Parameters
Returns
Inequality(Vector4f, Vector4f)
Declaration
public static bool operator !=(Vector4f a, Vector4f b)
Parameters
Returns
Multiply(Vector4f, Vector4f)
Declaration
public static Vector4f operator *(Vector4f a, Vector4f b)
Parameters
Returns
Multiply(Vector4f, Single)
Declaration
public static Vector4f operator *(Vector4f v, float f)
Parameters
Returns
Multiply(Single, Vector4f)
Declaration
public static Vector4f operator *(float f, Vector4f v)
Parameters
Returns
Subtraction(Vector4f, Vector4f)
Declaration
public static Vector4f operator -(Vector4f v0, Vector4f v1)
Parameters
Returns
Subtraction(Vector4f, Single)
Declaration
public static Vector4f operator -(Vector4f v0, float f)
Parameters
Returns
UnaryNegation(Vector4f)
Declaration
public static Vector4f operator -(Vector4f v)
Parameters
Returns
Implements