Struct Vector
Vector - A value type which defined a vector in terms of X and Y
Inherited Members
Namespace: Telerik.Documents.Primitives
Assembly: Telerik.Windows.Documents.Core.dll
Syntax
public struct Vector
Constructors
Vector(Double, Double)
Constructor which sets the vector's initial values
Declaration
public Vector(double x, double y)
Parameters
System.Double
x
double - The initial X |
System.Double
y
double - THe initial Y |
Properties
Length
Length Property - the length of this Vector
Declaration
public double Length { get; }
Property Value
System.Double
|
LengthSquared
LengthSquared Property - the squared length of this Vector
Declaration
public double LengthSquared { get; }
Property Value
System.Double
|
X
The X coordinate. Default value is 0.
Declaration
public double X { get; set; }
Property Value
System.Double
|
Y
The Y coordinate. Default value is 0.
Declaration
public double Y { get; set; }
Property Value
System.Double
|
Operators
Division(Vector, Double)
Operator Vector / double
Declaration
public static Vector operator /(Vector vector, double scalar)
Parameters
Vector
vector
|
System.Double
scalar
|
Returns
Vector
|
Multiply(Vector, Double)
Operator Vector * double
Declaration
public static Vector operator *(Vector vector, double scalar)
Parameters
Vector
vector
|
System.Double
scalar
|
Returns
Vector
|