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.
Namespace: Cognex.VisionPro3DAssembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 75.0.0.0
Syntax
The Cog3DVect2 type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Cog3DVect2 |
Construct this Cog3DVect2 with the supplied X,Y values.
|
Methods
| Name | Description | |
|---|---|---|
| ComputeCrossProduct |
Compute the cross product of this Cog3DVect2 with the supplied other.
| |
| ComputeDistance |
Compute the distance of this Cog3DVect2 from the supplied other.
| |
| ComputeDotProduct |
Compute the dot product of this Cog3DVect2 with the supplied other.
| |
| Equals | (Overrides ValueType Equals(Object).) | |
| GetHashCode | (Overrides ValueType GetHashCode .) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| RealEqual |
Compares the internal state of the specified instances and returns
true if the internal state is within epsilon.
| |
| ToString |
Override of ToString method to get a string for describing this object.
(Overrides ValueType ToString .) |
Operators
| Name | Description | |
|---|---|---|
| Addition |
Add two Cog3DVect2.
| |
| Division |
Divide a Cog3DVect2 by a scalar.
| |
| Equality |
Compare two Cog3DVect2.
| |
| Inequality |
Compare two Cog3DVect2.
| |
| Multiply |
Multiply a Cog3DVect2 by a scalar.
| |
| Subtraction |
Subtract two Cog3DVect2.
|
Properties
| Name | Description | |
|---|---|---|
| Length |
Gets the length of this vector.
| |
| X |
Gets the X coordinate value.
| |
| Y |
Gets the Y coordinate value.
|
See Also