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