Instrumentation Widgets for PDA

Vector Members

Vector overview

Public Static (Shared) Fields

Empty Defines a "null"-vector.

Public Static (Shared) Methods

FromPolar Converts plar coords to Vector.

Public Static (Shared) Operators and Type Conversions

Addition Operator Implements addition of the two given vectors.
Division Operator Implements division of the given vector by the specified scalar value.
Equality Operator Returns true if two given vectors are identical.
Inequality Operator Returns true if two given vectors are not identical.
Multiplication OperatorOverloaded. Implements multiplication of the two given vectors.
Subtraction Operator Implements subtraction of the two given vectors.
Unary Negation Operator Defines unary operator -.
Unary Plus Operator Defines unary operator +.
Explicit Vector to Point Conversion Converts the given Vector to an integer Point with truncation.
Explicit Vector to Size Conversion Converts the given Vector to an integer Size with truncation.
Implicit Vector to SizeF Conversion Converts the given Vector to a SizeF
Implicit Point to Vector Conversion Converts the given integer Point to a Vector
Implicit Size to Vector Conversion Converts the given integer Size to a Vector
Implicit SizeF to Vector Conversion Converts the given SizeF to a Vector

Public Instance Constructors

Vector Overloaded. Initializes a new instance of the Vector class.

Public Instance Properties

Height Gets or sets the "height" duplicates the Y-value.
IsEmpty Returns true if this is a "null"-vector.
Item Gets or sets vector coord in specified direction.
Lenght Gets vector lenght.
Rotation Gets vector rotation.
Width Gets or sets the "width" duplicates the X-value.
X Gets or sets X-component of the vector
Y Gets or sets Y-component of the vector.

Public Instance Methods

Abs Returns the modulus of the vector
Equals Determines whether two Vector instances are equal.
GetHashCode Serves as a hash function for Vector, suitable for use in hashing algorithms and data structures like a hash table.
GetSecondaryValue Gets secondary direction coord.
GetType (inherited from Object) Gets the Type of the current instance.
Quant Snaps the vector to a grid with the specifed cell size.
QuantX Snaps the X-component to a grid with the specified x-size of a cell
QuantY Snaps the Y-component to a grid with the specified y-size of a cell
ToString Returns a String that represents the current Vector object.
Truncate Truncates the current Vector object to an integer Point.
TruncateSize Truncates the current Vector object to an integer Size.

See Also

Vector Class | PerpetuumSoft.InstrumentationPDA.Mathematics Namespace