Geometry
This class defines various pseudo-constant values used within the geometry package of Pathfinder. These static fields provide configurable tolerances and formatting strings for geometric calculations and representations.
Fields
METERS_TO_INCHES
Conversion factor from meters to inches.
INCHES_TO_METERS
Conversion factor from inches to meters.
METERS_TO_CENTIMETERS
Conversion factor from meters to centimeters.
CENTIMETERS_TO_METERS
Conversion factor from centimeters to meters.
CENTIMETERS_TO_INCHES
Conversion factor from centimeters to inches.
INCHES_TO_CENTIMETERS
Conversion factor from inches to centimeters.
tolerancePointXY
Tolerance used in determining if two PointXY objects are equivalent. This is a double value representing the maximum allowable difference for two points to be considered equal.
tolerancePointXYZ
Tolerance used in determining if two PointXYZ objects are equivalent. Similar to tolerancePointXY, but for 3D points.
toleranceAngle
Tolerance used in determining if two Angle objects are equivalent. This is an Angle object itself, allowing for angle-specific tolerance.
toleranceCollinear
Tolerance used in determining if three or more PointXY objects are collinear.
toleranceParallel
Tolerance used in determining if two lines are parallel.
tolerancePerpendicular
Tolerance used in determining if two lines are perpendicular.
toleranceIsVertical
Tolerance used in determining if a line is vertical.
toleranceRectangleReference
Tolerance used in determining if a given PointXY is at the same position as one of a rectangle's four points. This is used in detecting if a point is contained within a shape.
toleranceRectangle
Tolerance used in determining if two Rectangle objects are equal.
toleranceTranslation
Tolerance used in determining if two Translation objects are equal.
formatPointXY
The format string PointXY will use in its toString() method (e.g., "(x, y)").
formatPointXYZ
The format string PointXYZ will use in its toString() method (e.g., "(x, y, z deg)").
formatAngle
The format string Angle will use in its toString() method (e.g., "s deg").
formatRange
The format string Range will use in its toString() method.
formatTranslation
The format string Translation will use in its toString() method (e.g., "(vx: s, vy: s, vz: s)").