This value class encapsulates a two dimensional point or vector. Note that this class is immutable - it may not be changed once it has been constructed. The default values for properties X and Y are 0.0.
Cognex.Vision ShareableBase
Cognex.Vision Vect2
Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.22.2.0
The Vect2 type exposes the following members.
| Name | Description | |
|---|---|---|
| Vect2 | Construct the Vect2 with the supplied x-coordinate and y-coordinate. |
| Name | Description | |
|---|---|---|
| ComputeCrossProduct | Compute the cross product of this Vect2 with the supplied other. | |
| ComputeDistance | Compute the distance of this Vect2 from the supplied other. | |
| ComputeDotProduct | Compute the dot product of this Vect2 with the supplied other. | |
| Equals | Compares the equality of this object with another. (Overrides ShareableBase Equals(Object).) | |
| GetHashCode | Returns the hash code of this object. (Overrides ShareableBase GetHashCode .) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetTypeMeta | Get the TypeMeta that describes the type of this object. | |
| RealEqual | Checks the values of the supplied vectors are equal within the epsilon tolerance. | |
| ToString | Returns a human readable string that represents the object. |
| Name | Description | |
|---|---|---|
| Addition | ||
| Division | ||
| Equality | ||
| Inequality | ||
| Multiply | ||
| Subtraction |
| Name | Description | |
|---|---|---|
| Handle | (Overrides ShareableBase Handle.) | |
| Length | Gets the length of this vector. | |
| X | Gets the X coordinate value. | |
| Y | Gets the Y coordinate value. |