The class used to store some tolerance values.

Constructors

  • Create tolerance class with default tolerance values

    Returns AcGeTol

Properties

equalPointTol: number

Tolerance value to check whether two points are equal. Two points, p1 and p2, are equal if

(p1 - p2).length() <= equalPointTol
equalVectorTol: number

Tolerance value to compare two vectors.

  1. Two vectors, v1 and v2, are equal if
(p1 - p2).length() <= equalPoint
  1. Two vectors, v1 and v2, are parallel if
(v1/v1.length() - v2/v2.length() ).length() < equalVectorTol

(v1/v1.length() + v2/v2.length() ).length() < equalVectorTol
  1. Two vectors, v1 and v2, are perpendicular if
abs((v1.dotProduct(v2))/(v1.length()*v2.length())) <= equalVectorTol

Methods

  • Return true if two points are equal with the specified tolerance.

    Parameters

    Returns boolean

    Return true if two poitns are equal with the specified tolerance.

  • Return true if two points are equal with the specified tolerance.

    Parameters

    Returns boolean

    Return true if two poitns are equal with the specified tolerance.

  • Return true if two values are equal with the sepcified tolerance.

    Parameters

    • value1: number

      Input the first value

    • value2: number

      Input the second value

    • Optionaltol: number

      Input the tolerance value

    Returns boolean

    Return true if two values are equal with the sepcified tolerance

  • Return true if the value is equal to zero with the specified tolerance.

    Parameters

    • x: number
    • Optionaltol: number

    Returns boolean

  • Return true if the first argument are greater than the second argument with the sepcified tolerance.

    Parameters

    • value1: number

      Input the first value

    • value2: number

      Input the second value

    • Optionaltol: number

      Input the tolerance value

    Returns boolean

    Return true if the first argument are greater than the second argument with the sepcified tolerance.

  • Return true if the first argument less than the second argument with the specified tolerance value

    Parameters

    • value1: number

      Input the first value

    • value2: number

      Input the second value

    • Optionaltol: number

      Input the tolerance value

    Returns boolean

    Return true if the first argument less than the second argument with the specified tolerance value