Cog3DRange StructureCognex VisionPro 9.7
This value class describes a range and associated operations. A range can have a range type of Cog3DRangeTypeConstants.Full, or .Empty, or .Partial. If the range type is Cog3DRangeTypeConstants:Partial, it has a start value and an end value.

Namespace: Cognex.VisionPro3D
Assembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 73.0.0.0
Syntax

[SerializableAttribute]
public struct Cog3DRange

The Cog3DRange type exposes the following members.

Constructors

  NameDescription
Public methodCog3DRange
Construct this Cog3DRange with the given start and end values.
Top
Methods

  NameDescription
Public methodStatic memberCreateFullRange
Create a full range object.
Public methodDilate
Dilate this range by another range.
Public methodEquals (Overrides ValueType Equals(Object).)
Public methodErode
Erode this range by another range.
Public methodGetHashCode (Overrides ValueType GetHashCode .)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIntersect
Intersect this range with another range.
Public methodIsWithin
Check whether a value is inside the range.
Public methodStatic memberRealEqual
Compares the internal state of the specified instances and returns true if the internal state is within epsilon.
Public methodScale
Scale this range by the given amount.
Public methodToString
Override of ToString method to get a string for describing this object.
(Overrides ValueType ToString .)
Public methodTranslate
Translate this range by the given amount.
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Compare two Cog3DRange's.
Public operatorStatic memberInequality
Compare two Cog3DRange's.
Top
Properties

  NameDescription
Public propertyEnd
Gets the end value of the range.
Public propertyLength
Gets the length of the range, and is defined as follows:
  • If RangeType is Cog3DRangeTypeConstants.Full, Length is Double.MaxValue.
  • If RangeType is Cog3DRangeTypeConstants.Empty,Length is 0.
  • If RangeType is Cog3DRangeTypeConstants.Partial, Length is (End -Start).
Public propertyMiddle
Gets the middle of the range.
Public propertyRangeType
Gets the type of the range.
Public propertyStart
Gets the start value of the range.
Top
Remarks

  • This class is immutable - it may not be changed once it has been constructed.
  • The default constructor creates an object with an empty range.
See Also