Struct Vector
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public struct Vector : IFormattable
Constructors
Vector(Double, Double)
Declaration
public Vector(double x, double y)
Parameters
System.Double
x
|
System.Double
y
|
Properties
Length
Declaration
public double Length { get; }
Property Value
System.Double
|
LengthSquared
Declaration
public double LengthSquared { get; }
Property Value
System.Double
|
X
Declaration
public double X { get; set; }
Property Value
System.Double
|
Y
Declaration
public double Y { get; set; }
Property Value
System.Double
|
Methods
Add(Vector, Point)
Declaration
public static Point Add(Vector vector, Point point)
Parameters
Vector
vector
|
Point
point
|
Returns
Point
|
Add(Vector, Vector)
Declaration
public static Vector Add(Vector vector1, Vector vector2)
Parameters
Vector
vector1
|
Vector
vector2
|
Returns
Vector
|
AngleBetween(Vector, Vector)
Declaration
public static double AngleBetween(Vector vector1, Vector vector2)
Parameters
Vector
vector1
|
Vector
vector2
|
Returns
System.Double
|
CrossProduct(Vector, Vector)
Declaration
public static double CrossProduct(Vector vector1, Vector vector2)
Parameters
Vector
vector1
|
Vector
vector2
|
Returns
System.Double
|
Determinant(Vector, Vector)
Declaration
public static double Determinant(Vector vector1, Vector vector2)
Parameters
Vector
vector1
|
Vector
vector2
|
Returns
System.Double
|
Divide(Vector, Double)
Declaration
public static Vector Divide(Vector vector, double scalar)
Parameters
Vector
vector
|
System.Double
scalar
|
Returns
Vector
|
Equals(Object)
Declaration
public override bool Equals(object o)
Parameters
System.Object
o
|
Returns
System.Boolean
|
Overrides
Equals(Vector)
Equals(Vector, Vector)
Declaration
public static bool Equals(Vector vector1, Vector vector2)
Parameters
Vector
vector1
|
Vector
vector2
|
Returns
System.Boolean
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
Multiply(Double, Vector)
Declaration
public static Vector Multiply(double scalar, Vector vector)
Parameters
System.Double
scalar
|
Vector
vector
|
Returns
Vector
|
Multiply(Vector, Double)
Declaration
public static Vector Multiply(Vector vector, double scalar)
Parameters
Vector
vector
|
System.Double
scalar
|
Returns
Vector
|
Multiply(Vector, Vector)
Declaration
public static double Multiply(Vector vector1, Vector vector2)
Parameters
Vector
vector1
|
Vector
vector2
|
Returns
System.Double
|
Negate()
Declaration
public void Negate()
Normalize()
Declaration
public void Normalize()
Parse(String)
Declaration
public static object Parse(string str)
Parameters
System.String
str
|
Returns
System.Object
|
Subtract(Vector, Vector)
Declaration
public static Vector Subtract(Vector vector1, Vector vector2)
Parameters
Vector
vector1
|
Vector
vector2
|
Returns
Vector
|
Operators
Addition(Vector, Point)
Declaration
public static Point operator +(Vector vector, Point point)
Parameters
Vector
vector
|
Point
point
|
Returns
Point
|
Addition(Vector, Vector)
Declaration
public static Vector operator +(Vector vector1, Vector vector2)
Parameters
Vector
vector1
|
Vector
vector2
|
Returns
Vector
|
Division(Vector, Double)
Declaration
public static Vector operator /(Vector vector, double scalar)
Parameters
Vector
vector
|
System.Double
scalar
|
Returns
Vector
|
Equality(Vector, Vector)
Declaration
public static bool operator ==(Vector vector1, Vector vector2)
Parameters
Vector
vector1
|
Vector
vector2
|
Returns
System.Boolean
|
Explicit(Vector to Point)
Declaration
public static explicit operator Point(Vector vector)
Parameters
Vector
vector
|
Returns
Point
|
Explicit(Vector to Size)
Declaration
public static explicit operator Size(Vector vector)
Parameters
Vector
vector
|
Returns
Size
|
Inequality(Vector, Vector)
Declaration
public static bool operator !=(Vector vector1, Vector vector2)
Parameters
Vector
vector1
|
Vector
vector2
|
Returns
System.Boolean
|
Multiply(Double, Vector)
Declaration
public static Vector operator *(double scalar, Vector vector)
Parameters
System.Double
scalar
|
Vector
vector
|
Returns
Vector
|
Multiply(Vector, Double)
Declaration
public static Vector operator *(Vector vector, double scalar)
Parameters
Vector
vector
|
System.Double
scalar
|
Returns
Vector
|
Multiply(Vector, Vector)
Declaration
public static double operator *(Vector vector1, Vector vector2)
Parameters
Vector
vector1
|
Vector
vector2
|
Returns
System.Double
|
Subtraction(Vector, Vector)
Declaration
public static Vector operator -(Vector vector1, Vector vector2)
Parameters
Vector
vector1
|
Vector
vector2
|
Returns
Vector
|
UnaryNegation(Vector)
Explicit Interface Implementations
IFormattable.ToString(String, IFormatProvider)
Declaration
string IFormattable.ToString(string format, IFormatProvider formatProvider)
Parameters
System.String
format
|
System.IFormatProvider
formatProvider
|
Returns
System.String
|