Struct Vector3f
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct Vector3f : IComparable<Vector3f>, IEquatable<Vector3f>
Constructors
Vector3f(Vector3d)
Declaration
public Vector3f(Vector3d copy)
Parameters
Vector3f(Vector3f)
Declaration
public Vector3f(Vector3f copy)
Parameters
Vector3f(Double)
Declaration
public Vector3f(double f)
Parameters
Type |
Name |
Description |
Double |
f |
|
Vector3f(Double, Double, Double)
Declaration
public Vector3f(double x, double y, double z)
Parameters
Vector3f(Double[])
Declaration
public Vector3f(double[] v2)
Parameters
Type |
Name |
Description |
Double[] |
v2 |
|
Vector3f(Single)
Declaration
Parameters
Type |
Name |
Description |
Single |
f |
|
Vector3f(Single, Single, Single)
Declaration
public Vector3f(float x, float y, float z)
Parameters
Vector3f(Single[])
Declaration
public Vector3f(float[] v2)
Parameters
Type |
Name |
Description |
Single[] |
v2 |
|
Fields
AxisX
Declaration
public static readonly Vector3f AxisX
Field Value
AxisY
Declaration
public static readonly Vector3f AxisY
Field Value
AxisZ
Declaration
public static readonly Vector3f AxisZ
Field Value
Invalid
Declaration
public static readonly Vector3f Invalid
Field Value
MaxValue
Declaration
public static readonly Vector3f MaxValue
Field Value
MinValue
Declaration
public static readonly Vector3f MinValue
Field Value
One
Declaration
public static readonly Vector3f One
Field Value
OneNormalized
Declaration
public static readonly Vector3f OneNormalized
Field Value
x
Declaration
Field Value
y
Declaration
Field Value
z
Declaration
Field Value
Zero
Declaration
public static readonly Vector3f 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
Max
Declaration
public float Max { get; }
Property Value
MaxAbs
Declaration
public float MaxAbs { get; }
Property Value
Min
Declaration
public float Min { get; }
Property Value
MinAbs
Declaration
public float MinAbs { get; }
Property Value
Normalized
Declaration
public Vector3f Normalized { get; }
Property Value
xy
Declaration
public Vector2f xy { get; set; }
Property Value
xz
Declaration
public Vector2f xz { get; set; }
Property Value
yz
Declaration
public Vector2f yz { get; set; }
Property Value
Methods
Add(Vector3f)
Declaration
public void Add(Vector3f o)
Parameters
AngleD(Vector3f)
Declaration
public float AngleD(Vector3f v2)
Parameters
Returns
AngleD(Vector3f, Vector3f)
Declaration
public static float AngleD(Vector3f v1, Vector3f v2)
Parameters
Returns
AngleR(Vector3f)
Declaration
public float AngleR(Vector3f v2)
Parameters
Returns
AngleR(Vector3f, Vector3f)
Declaration
public static float AngleR(Vector3f v1, Vector3f v2)
Parameters
Returns
CompareTo(Vector3f)
Declaration
public int CompareTo(Vector3f other)
Parameters
Returns
Cross(Vector3f)
Declaration
public Vector3f Cross(Vector3f v2)
Parameters
Returns
Cross(Vector3f, Vector3f)
Declaration
public static Vector3f Cross(Vector3f v1, Vector3f v2)
Parameters
Returns
Distance(Vector3f)
Declaration
public float Distance(Vector3f v2)
Parameters
Returns
DistanceSquared(Vector3f)
Declaration
public float DistanceSquared(Vector3f v2)
Parameters
Returns
Dot(Vector3f)
Declaration
public float Dot(Vector3f v2)
Parameters
Returns
Dot(Vector3f, Vector3f)
Declaration
public static float Dot(Vector3f v1, Vector3f v2)
Parameters
Returns
EpsilonEqual(Vector3f, Single)
Declaration
public bool EpsilonEqual(Vector3f v2, float epsilon)
Parameters
Returns
Equals(Vector3f)
Declaration
public bool Equals(Vector3f 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
Lerp(Vector3f, Vector3f, Single)
Declaration
public static Vector3f Lerp(Vector3f a, Vector3f b, float t)
Parameters
Returns
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 |
|
Set(Vector3f)
Declaration
public void Set(Vector3f o)
Parameters
Set(Single, Single, Single)
Declaration
public void Set(float fX, float fY, float fZ)
Parameters
Subtract(Vector3f)
Declaration
public void Subtract(Vector3f o)
Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
ToString(String)
Declaration
public string ToString(string fmt)
Parameters
Type |
Name |
Description |
String |
fmt |
|
Returns
UnitCross(Vector3f)
Declaration
public Vector3f UnitCross(Vector3f v2)
Parameters
Returns
Operators
Addition(Vector3f, Vector3f)
Declaration
public static Vector3f operator +(Vector3f v0, Vector3f v1)
Parameters
Returns
Addition(Vector3f, Single)
Declaration
public static Vector3f operator +(Vector3f v0, float f)
Parameters
Returns
Division(Vector3f, Vector3f)
Declaration
public static Vector3f operator /(Vector3f a, Vector3f b)
Parameters
Returns
Division(Vector3f, Single)
Declaration
public static Vector3f operator /(Vector3f v, float f)
Parameters
Returns
Division(Single, Vector3f)
Declaration
public static Vector3f operator /(float f, Vector3f v)
Parameters
Returns
Equality(Vector3f, Vector3f)
Declaration
public static bool operator ==(Vector3f a, Vector3f b)
Parameters
Returns
Inequality(Vector3f, Vector3f)
Declaration
public static bool operator !=(Vector3f a, Vector3f b)
Parameters
Returns
Multiply(Vector3f, Vector3f)
Declaration
public static Vector3f operator *(Vector3f a, Vector3f b)
Parameters
Returns
Multiply(Vector3f, Single)
Declaration
public static Vector3f operator *(Vector3f v, float f)
Parameters
Returns
Multiply(Single, Vector3f)
Declaration
public static Vector3f operator *(float f, Vector3f v)
Parameters
Returns
Subtraction(Vector3f, Vector3f)
Declaration
public static Vector3f operator -(Vector3f v0, Vector3f v1)
Parameters
Returns
Subtraction(Vector3f, Single)
Declaration
public static Vector3f operator -(Vector3f v0, float f)
Parameters
Returns
UnaryNegation(Vector3f)
Declaration
public static Vector3f operator -(Vector3f v)
Parameters
Returns
Implements