Struct Vector2d
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct Vector2d : IComparable<Vector2d>, IEquatable<Vector2d>
Constructors
Vector2d(Vector2d)
Declaration
public Vector2d(Vector2d copy)
Parameters
Vector2d(Vector2f)
Declaration
public Vector2d(Vector2f copy)
Parameters
Vector2d(Double)
Declaration
public Vector2d(double f)
Parameters
Type |
Name |
Description |
Double |
f |
|
Vector2d(Double, Double)
Declaration
public Vector2d(double x, double y)
Parameters
Vector2d(Double[])
Declaration
public Vector2d(double[] v2)
Parameters
Type |
Name |
Description |
Double[] |
v2 |
|
Vector2d(Single)
Declaration
Parameters
Type |
Name |
Description |
Single |
f |
|
Vector2d(Single, Single)
Declaration
public Vector2d(float x, float y)
Parameters
Vector2d(Single[])
Declaration
public Vector2d(float[] v2)
Parameters
Type |
Name |
Description |
Single[] |
v2 |
|
Fields
AxisX
Declaration
public static readonly Vector2d AxisX
Field Value
AxisY
Declaration
public static readonly Vector2d AxisY
Field Value
MaxValue
Declaration
public static readonly Vector2d MaxValue
Field Value
MinValue
Declaration
public static readonly Vector2d MinValue
Field Value
One
Declaration
public static readonly Vector2d One
Field Value
x
Declaration
Field Value
y
Declaration
Field Value
Zero
Declaration
public static readonly Vector2d 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
LengthSquared
Declaration
public double LengthSquared { get; }
Property Value
Normalized
Declaration
public Vector2d Normalized { get; }
Property Value
Perp
returns right-perp vector, ie rotated 90 degrees to the right
Declaration
public Vector2d Perp { get; }
Property Value
UnitPerp
returns right-perp vector, ie rotated 90 degrees to the right
Declaration
public Vector2d UnitPerp { get; }
Property Value
Methods
Add(Vector2d)
Declaration
public void Add(Vector2d o)
Parameters
AngleD(Vector2d)
Declaration
public double AngleD(Vector2d v2)
Parameters
Returns
AngleD(Vector2d, Vector2d)
Declaration
public static double AngleD(Vector2d v1, Vector2d v2)
Parameters
Returns
AngleR(Vector2d)
Declaration
public double AngleR(Vector2d v2)
Parameters
Returns
AngleR(Vector2d, Vector2d)
Declaration
public static double AngleR(Vector2d v1, Vector2d v2)
Parameters
Returns
CompareTo(Vector2d)
Declaration
public int CompareTo(Vector2d other)
Parameters
Returns
Cross(Vector2d)
returns cross-product of this vector with v2 (same as DotPerp)
Declaration
public double Cross(Vector2d v2)
Parameters
Returns
Distance(Vector2d)
Declaration
public double Distance(Vector2d v2)
Parameters
Returns
DistanceSquared(Vector2d)
Declaration
public double DistanceSquared(Vector2d v2)
Parameters
Returns
Dot(Vector2d)
Declaration
public double Dot(Vector2d v2)
Parameters
Returns
DotPerp(Vector2d)
returns dot-product of this vector with v2.Perp
Declaration
public double DotPerp(Vector2d v2)
Parameters
Returns
EpsilonEqual(Vector2d, Double)
Declaration
public bool EpsilonEqual(Vector2d v2, double epsilon)
Parameters
Returns
Equals(Vector2d)
Declaration
public bool Equals(Vector2d other)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
FromAngleDeg(Double)
Declaration
public static Vector2d FromAngleDeg(double angle)
Parameters
Type |
Name |
Description |
Double |
angle |
|
Returns
FromAngleRad(Double)
Declaration
public static Vector2d FromAngleRad(double angle)
Parameters
Type |
Name |
Description |
Double |
angle |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Declaration
public static void GetInformation(IList<Vector2d> points, double epsilon, out Vector2d.Information info)
Parameters
Lerp(Vector2d, Vector2d, Double)
Declaration
public static Vector2d Lerp(Vector2d a, Vector2d b, double t)
Parameters
Returns
Lerp(ref Vector2d, ref Vector2d, Double)
Declaration
public static Vector2d Lerp(ref Vector2d a, ref Vector2d b, double t)
Parameters
Returns
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 |
|
Set(Vector2d)
Declaration
public void Set(Vector2d o)
Parameters
Set(Double, Double)
Declaration
public void Set(double fX, double fY)
Parameters
Subtract(Vector2d)
Declaration
public void Subtract(Vector2d o)
Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
Addition(Vector2d, Vector2d)
Declaration
public static Vector2d operator +(Vector2d a, Vector2d o)
Parameters
Returns
Addition(Vector2d, Double)
Declaration
public static Vector2d operator +(Vector2d a, double f)
Parameters
Returns
Division(Vector2d, Vector2d)
Declaration
public static Vector2d operator /(Vector2d a, Vector2d b)
Parameters
Returns
Division(Vector2d, Double)
Declaration
public static Vector2d operator /(Vector2d v, double f)
Parameters
Returns
Division(Double, Vector2d)
Declaration
public static Vector2d operator /(double f, Vector2d v)
Parameters
Returns
Equality(Vector2d, Vector2d)
Declaration
public static bool operator ==(Vector2d a, Vector2d b)
Parameters
Returns
Explicit(Vector2d to Vector2f)
Declaration
public static explicit operator Vector2f(Vector2d v)
Parameters
Returns
Implicit(Vector2f to Vector2d)
Declaration
public static implicit operator Vector2d(Vector2f v)
Parameters
Returns
Inequality(Vector2d, Vector2d)
Declaration
public static bool operator !=(Vector2d a, Vector2d b)
Parameters
Returns
Multiply(Vector2d, Vector2d)
Declaration
public static Vector2d operator *(Vector2d a, Vector2d b)
Parameters
Returns
Multiply(Vector2d, Double)
Declaration
public static Vector2d operator *(Vector2d a, double f)
Parameters
Returns
Multiply(Double, Vector2d)
Declaration
public static Vector2d operator *(double f, Vector2d a)
Parameters
Returns
Subtraction(Vector2d, Vector2d)
Declaration
public static Vector2d operator -(Vector2d a, Vector2d o)
Parameters
Returns
Subtraction(Vector2d, Double)
Declaration
public static Vector2d operator -(Vector2d a, double f)
Parameters
Returns
UnaryNegation(Vector2d)
Declaration
public static Vector2d operator -(Vector2d v)
Parameters
Returns
Implements