Click or drag to resize
Vector Structure
Implements Vector structure

Namespace: EmptyKeys.UserInterface
Assembly: EmptyKeys.UserInterface.Core (in EmptyKeys.UserInterface.Core.dll) Version: 2.5.0.0 (2.5.0.0)
Syntax
C#
public struct Vector : IEquatable<Vector>

The Vector type exposes the following members.

Constructors
  NameDescription
Public methodVector(Double, Double)
Initializes a new instance of the Vector struct.
Public methodVector(Single, Single)
Initializes a new instance of the Vector struct.
Top
Properties
  NameDescription
Public propertyLength
Gets the length.
Public propertyLengthSquared
Gets the length squared.
Public propertyStatic memberZero
Gets the zero vector.
Top
Methods
  NameDescription
Public methodStatic memberAdd(Vector, PointF)
Adds the specified vectors.
Public methodStatic memberAdd(Vector, Vector)
Adds the specified vector1s.
Public methodStatic memberDeterminant
Determinant of specified vectors.
Public methodStatic memberDivide
Divides the specified vector.
Public methodStatic memberDot
Returns a dot product of two vectors.
Public methodEquals(Object)
Determines whether the specified Object, is equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberMultiply(Single, Vector)
Multiplies the specified scalar.
Public methodStatic memberMultiply(Vector, Vector)
Multiplies the specified vectors
Public methodStatic memberMultiply(Vector, Single)
Multiplies the specified vector.
Public methodNegate
Negates this instance.
Public methodNormalize
Normalizes this instance.
Public methodStatic memberNormalize(Vector)
Normalizes the specified vector.
Public methodStatic memberSubtract
Subtracts the specified vectors.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition(Vector, PointF)
Implements the operator +.
Public operatorStatic memberAddition(Vector, Vector)
Implements the operator +.
Public operatorStatic memberDivision
Implements the operator /.
Public operatorStatic memberEquality
Implements the operator ==.
Public operatorStatic member(Vector to Size)
Performs an explicit conversion from Vector to Size.
Public operatorStatic member(Vector to PointF)
Performs an explicit conversion from Vector to PointF.
Public operatorStatic memberInequality
Implements the operator !=.
Public operatorStatic memberMultiply(Single, Vector)
Implements the operator *.
Public operatorStatic memberMultiply(Vector, Vector)
Implements the operator *.
Public operatorStatic memberMultiply(Vector, Single)
Implements the operator *.
Public operatorStatic memberSubtraction
Implements the operator -.
Public operatorStatic memberUnaryNegation
Implements the operator -.
Top
Fields
  NameDescription
Public fieldX
The X
Public fieldY
The Y
Top
See Also