Public Methods | |
oaVector () | |
oaVector (oaOffset xValIn, oaOffset yValIn) | |
oaVector (const oaPoint &head) | |
oaVector (const oaPoint &tail, const oaPoint &head) | |
oaOffset & | x () |
oaOffset & | y () |
oaOffset | x () const |
oaOffset | y () const |
void | set (const oaPoint &tail, const oaPoint &head) |
void | setLength (const oaInt4 length) |
oaInt4 | getLength () const |
oaBoolean | leftOf (const oaVector &ref) const |
oaBoolean | rightOf (const oaVector &ref) const |
void | rotate90 () |
void | rotate180 () |
void | rotate270 () |
void | addToPoint (const oaPoint &start, oaPoint &result) const |
void | subFromPoint (const oaPoint &start, oaPoint &result) const |
oaBoolean | intersects (const oaPoint &ref, const oaVector &other, const oaPoint &otherRef, oaPoint &iPt) const |
oaDouble | operator * (const oaVector &v) const |
oaBoolean | operator== (const oaVector &v) const |
oaBoolean | operator!= (const oaVector &v) const |
void | normalize () |
oaDouble | getCosAngle (const oaVector &v) const |
Friends | |
class | oaChecker< oaVector > |
|
This function constructs a default oaVector instance. |
|
This function constructs an oaVector object, initializing the vector with the specified X and Y offset values.
|
|
This function constructs an oaVector object, initializing the vector from a single head point with the origin at the implied tail.
|
|
This function constructs an oaVector object, initializing the vector using the specified head and tail values.
|
|
This function adds this vector to the point start, and places the result in result.
|
|
This function returns the cosine of the angle between this vector and the specified vector.
|
|
This function returns the length of this vector. |
|
This function finds the point of intersection between this vector and vector other. This function converts the vectors into segments. The segments do all the work.
|
|
This function returns true if this vector is to the left of the specified vector. "Leftof" means the angle of this vector minus the angle of ref is between 0 and 180 degrees.
|
|
This function normalizes this vector to a unit vector. The result is undefined for a zero length vector. |
|
This operator returns an oaDouble that equals the product of this oaVector and the specified oaVector v. |
|
This operator compares this oaVector with the specified oaVector v and returns true if the two vectors are not equal. |
|
This operator compares this oaVector with the specified oaVector v and returns true if the two vectors are equal. |
|
This function returns true if this vector is to the right of the specified vector. "Rightof" means the angle of this vector minus the angle of ref is between 180 and 360 degrees.
|
|
This function rotates this vector by 180 degrees in a clockwise direction. |
|
This function rotates this vector by 270 degrees in a clockwise direction. |
|
This function rotates this vector by 90 degrees in a clockwise direction. |
|
This function recreates this vector based upon the segment generated from the head point to the tail point.
|
|
This function sets the length of this vector to the specified value. The result is undefined for a zero length vector.
|
|
This function subtracts this vector from the point start and places the result in result. |
|
This function returns the X value of this vector. |
|
This function returns the X value of this vector. |
|
This function returns the Y value of this vector. |
|
This function returns the Y value of this vector. |
|
|
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.