Public Methods | |
oaSegment () | |
oaSegment (const oaPoint &headIn, const oaPoint &tailIn) | |
oaSegment (const oaVector &vec, const oaPoint &ref) | |
oaPoint & | head () |
oaPoint & | tail () |
oaCoord & | x1 () |
oaCoord & | x2 () |
oaCoord & | y1 () |
oaCoord & | y2 () |
const oaPoint & | head () const |
const oaPoint & | tail () const |
oaCoord | x1 () const |
oaCoord | x2 () const |
oaCoord | y1 () const |
oaCoord | y2 () const |
void | set (const oaPoint &head, const oaPoint &tail) |
void | set (const oaVector &vec, const oaPoint &ref) |
oaBoolean | isHorizontal () const |
oaBoolean | isVertical () const |
oaBoolean | isOrthogonal () const |
oaOffset | getDeltaX () const |
oaOffset | getDeltaY () const |
oaDouble | distanceFrom2 (const oaPoint &point) const |
oaDouble | distanceFrom2 (const oaPoint &point, oaPoint &loc) const |
oaBoolean | contains (const oaPoint &point, oaBoolean includeEnds=true) const |
oaBoolean | collinearContains (const oaPoint &point, oaBoolean includeEnds=true) const |
oaBoolean | intersects (const oaSegment &seg, oaBoolean includeEnds=true) const |
oaBoolean | intersects (const oaSegment &seg, oaBoolean includeEnds, oaBoolean includeOverlap) const |
oaBoolean | intersects (const oaSegment &seg, oaPoint &iPt, oaBoolean mustIntersect=true) const |
oaBoolean | operator== (const oaSegment &segment) const |
oaBoolean | operator!= (const oaSegment &segment) const |
|
This function constructs an empty oaSegment instance. |
|
This function constructs an oaSegment instance and initializes the segment by specifying the end points.
|
|
This function constructs an oaSegment instance and initializes the segment by specifying the head and a vector from the head.
|
|
This function returns true if the specified collinear point lies on this segment. The flag includeEnds specifies whether the ends of the segments should be included or not.
|
|
This function returns true if the specified point lies on this segment.
|
|
This function finds the location on the segment that is closest to the specified point and returns the square of the distance from this location to the point.
|
|
This function returns the square of the distance from the specified point to the closest point on this segment. This function is faster than the previous function, but does not determine the location of the point.
|
|
This function returns the deltaX between the head and tail of this segment. |
|
This function returns the deltaY between the head and tail of this segment. |
|
This function returns a reference to the head point of this segment. |
|
This function returns the head point of this segment. |
|
This function finds the point of intersection between this segment and segment seg.
|
|
This function returns true if this segment intersects segment seg. The flag includeEnds specifies whether the ends of the segments should be included or not. It does this in a fast way, although it doesn't tell you where the intersection occurs. The flag, allowOverlap, determines whether or not overlapping segments are viewed as intersecting (true = yes; false = no).
|
|
This function returns true if this segment intersects segment seg. This function intersects segment seg quickly, but this function does not inform you where the intersection occurs. This function is faster than the previous function.
|
|
This function returns true if the slope of the segment is zero. |
|
This function returns true if the slope of the segment is zero or +/- infinity. |
|
This function returns true if the slope of the segment is +/- infinity. |
|
This function compares this oaSegment with the specified oaSegment segment and returns true if the segments are not equal. |
|
This function compares this oaSegment with the specified oaSegment segment and returns true if the segments are equal. |
|
This function sets the segment to start at the given reference point and point along the specified vector.
|
|
This function sets the segment to have the specified end points.
|
|
This function returns the tail point of this segment. |
|
This function returns the tail point of this segment. |
|
This function returns the X value of the head point of this segment. |
|
This function returns a reference to the X value of the head point of this segment. |
|
This function returns the X value of the tail point of this segment. |
|
This function returns a reference to the X value of the tail point of this segment. |
|
This function returns the Y value of the head point of this segment. |
|
This function returns a reference to the Y value of the head point of this segment. |
|
This function returns the Y value of the tail point of this segment. |
|
This function returns a reference to the Y value of the tail point of this segment. |
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.