Vect2 ClassCognex VisionPro 9.22

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.

Inheritance Hierarchy

System Object
  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
Syntax

public sealed class Vect2 : ShareableBase, 
	IObject

The Vect2 type exposes the following members.

Constructors

  NameDescription
Public methodVect2

Construct the Vect2 with the supplied x-coordinate and y-coordinate.

Top
Methods

  NameDescription
Public methodComputeCrossProduct

Compute the cross product of this Vect2 with the supplied other.

Public methodComputeDistance

Compute the distance of this Vect2 from the supplied other.

Public methodComputeDotProduct

Compute the dot product of this Vect2 with the supplied other.

Public methodEquals
Compares the equality of this object with another.
(Overrides ShareableBase Equals(Object).)
Public methodGetHashCode
Returns the hash code of this object.
(Overrides ShareableBase GetHashCode .)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetTypeMeta

Get the TypeMeta that describes the type of this object.

(Overrides ShareableBase GetTypeMeta .)
Public methodStatic memberRealEqual

Checks the values of the supplied vectors are equal within the epsilon tolerance.

Public methodToString

Returns a human readable string that represents the object.

(Overrides Object ToString .)
Top
Operators

  NameDescription
Public operatorStatic memberAddition
Public operatorStatic memberDivision
Public operatorStatic memberEquality
Public operatorStatic memberInequality
Public operatorStatic memberMultiply
Public operatorStatic memberSubtraction
Top
Properties

  NameDescription
Public propertyHandle (Overrides ShareableBase Handle.)
Public propertyLength

Gets the length of this vector.

Public propertyX

Gets the X coordinate value.

Public propertyY

Gets the Y coordinate value.

Top
See Also