|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.geometry.xy.XyDeflection
public class XyDeflection
A deflection angle. Retains the original reference direction.
Copyright 2007 Partner Software, Inc.
| Constructor Summary | |
|---|---|
XyDeflection(XyDirection baseDirection,
XyDirection deflectedDirection)
Creates a new XyDeflection reflecting the given deflected direction's deflection from the given base direction. |
|
XyDeflection(XyDirection origin,
XyRotation rotation)
Create a new XyDeflection from the given starting direction (angular origin) and angle offset. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
XyDeflection |
flipped()
Returns a modified version of this deflection with the angle flipped (leftTurn is set to the opposite of this deflection's setting). |
XyDirection |
getOrigin()
Returns the origin (reference or straight-line) direction that this is a deflection from. |
XyRotation |
getRotation()
Returns the rotation angle and direction from the origin this is a deflection from. |
XyDirection |
toDirection()
Computes the final direction from the reference and angle. |
java.lang.String |
toString()
|
XyDeflection |
withOrigin(XyDirection newOrigin)
Returns a modified version of this deflection with the given origin. |
XyDeflection |
withRotation(XyRotation newRotation)
Returns a modified version of this deflection with the given rotation. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XyDeflection(XyDirection origin,
XyRotation rotation)
public XyDeflection(XyDirection baseDirection,
XyDirection deflectedDirection)
| Method Detail |
|---|
public XyDeflection withOrigin(XyDirection newOrigin)
public XyDeflection withRotation(XyRotation newRotation)
public XyDeflection flipped()
public XyDirection toDirection()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic XyDirection getOrigin()
public XyRotation getRotation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||