|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.geometry.xy.XyRay
public class XyRay
A ray in (x, y) space.
Rays begin at a point and extend infinitely far in a single direction. You can think of them as a "half" line, since you can place a point arbitrarily along a run and split it into two rays going in opposite directions.
Copyright 2007 Partner Software, Inc.
| Constructor Summary | |
|---|---|
XyRay(XyPoint point,
XyDirection direction)
Construct a ray from the given point and direction. |
|
| Method Summary | |
|---|---|
XyDirection |
getDirection()
|
XyLine |
getLine()
Returns the line this ray forms a portion of. |
XyPoint |
getPoint()
|
XyVector |
toUnitVector()
Returns a unit vector with the same direction as this ray. |
XyRay |
withDirection(XyDirection newDirection)
|
XyRay |
withPoint(XyPoint newPoint)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XyRay(XyPoint point,
XyDirection direction)
| Method Detail |
|---|
public XyRay withPoint(XyPoint newPoint)
public XyRay withDirection(XyDirection newDirection)
public XyVector toUnitVector()
public XyPoint getPoint()
public XyDirection getDirection()
public XyLine getLine()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||