|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--objects.EuObject | +--objects.EuParametrized | +--objects.EuLine | +--objects.EuHalf
An instance of this class represents a half-line,
represented as a line using EuLine
, along with an endpoint and
a direction.
Field Summary | |
fundamentals.EuReal |
inParameter
The parameter at which the half-line begins. |
Fields inherited from class objects.EuLine |
generator |
Fields inherited from class objects.EuParametrized |
anchor |
Fields inherited from class objects.EuObject |
infoHash, provenience, scaledown |
Constructor Summary | |
EuHalf()
Contructor for dummy object |
|
EuHalf(double x,
double y,
double deltax,
double deltay,
double t,
int direction)
The constructor does initialization. |
|
EuHalf(objects.EuPoint p1,
objects.EuPoint p2)
The halfline is instantiated through the two given points, with p1 as endpoint |
Method Summary | |
fundamentals.EuVector |
anInnerPoint()
Describe anInnerPoint method here. |
fundamentals.EuVector |
atEnd()
Describe atEnd method here. |
boolean |
castIdentical(objects.EuObject other)
See if passed object can be cast to the present one. |
double |
closestParameter(double x,
double y)
Find the parameter value which yields the closest point to a given one. |
objects.plotCollection |
computeClip(fundamentals.mouseInfo info)
Compute the visible portion of the object as a collection of arcs, intervals or points. |
int |
getDirection()
Describe getDirection method here. |
boolean |
interiorContains(fundamentals.EuVector point)
See if passed point lies inside the half-line. |
protected fundamentals.EuVector |
invisibleRandomPoint(fundamentals.mouseInfo info,
java.util.Random croupier)
Chooses a sensible point on the half line when the half line is invisible. |
boolean |
isFull()
Describe isFull method here. |
boolean |
overlaps(objects.EuObject other)
See if objects overlap. |
java.lang.String |
params()
Describe params method here. |
void |
passArguments(fundamentals.EuArguments args)
Describe passArguments method here. |
java.lang.String |
toNaturalLanguage(int language,
boolean determined)
Describe toNaturalLanguage method here. |
java.lang.String |
toString()
Describe toString method here. |
char |
typeName()
Describe typeName method here. |
Methods inherited from class objects.EuLine |
atParameter, cloneMe, closestParameterOnLine, confusionDistance, nameDisplacementAngle, nameParameter, onSameLine, superIdentical |
Methods inherited from class objects.EuParametrized |
atParameter, atParameter, closestParameter, closureContains, distance, matchingPair, nameLocation, randomPoint |
Methods inherited from class objects.EuObject |
cloneObject, draw, equals, getClip, isVisible, mouseVicinity, mouseVicinity, toPs |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public fundamentals.EuReal inParameter
Constructor Detail |
public EuHalf(double x, double y, double deltax, double deltay, double t, int direction) throws DesignException, UserException
x
- the first coordinate of anchory
- the second coordinate of anchordeltax
- the first coordinate of generatordeltay
- the second coordinate of generatort
- the parameter of the endpointdirection
- the direction (direction
)
DesignException
- if an error occurs
UserException
- if an error occurspublic EuHalf()
public EuHalf(objects.EuPoint p1, objects.EuPoint p2) throws UserException
p1
- an EuPoint
valuep2
- an EuPoint
value
UserException
- if an error occursMethod Detail |
public fundamentals.EuVector atEnd()
atEnd
method here.
public objects.plotCollection computeClip(fundamentals.mouseInfo info) throws UserException
computeClip
in class EuLine
info
- information used in scaling and positioning the object
plotCollection
value
UserException
- if an error occursprotected fundamentals.EuVector invisibleRandomPoint(fundamentals.mouseInfo info, java.util.Random croupier)
invisibleRandomPoint
in class EuLine
info
- a mouseInfo
valuecroupier
- a Random
value
EuVector
valuepublic fundamentals.EuVector anInnerPoint()
anInnerPoint
method here.
EuVector
valuepublic boolean castIdentical(objects.EuObject other)
castIdentical
in class EuLine
other
- an EuObject
value
EuLine
which is
identical to this one @param other the object being compared to
the present onepublic double closestParameter(double x, double y)
closestParameter
in class EuLine
x
- The first coordinate of the given pointy
- The second coordinate of the given point
public boolean overlaps(objects.EuObject other)
overlaps
in class EuLine
other
- an EuObject
value
EuLine
, EuHalf
or
EuInterval
which overlaps with this one @param other the
object being compared to the present onepublic boolean interiorContains(fundamentals.EuVector point)
interiorContains
in class EuParametrized
point
- an EuVector
value
public char typeName()
typeName
method here.
typeName
in class EuLine
public boolean isFull()
isFull
method here.
isFull
in class EuLine
public int getDirection()
getDirection
method here.
int
valuepublic java.lang.String params()
params
method here.
params
in class EuLine
public java.lang.String toString()
toString
method here.
toString
in class EuLine
public void passArguments(fundamentals.EuArguments args)
passArguments
method here.
passArguments
in class EuLine
args
- an EuArguments
valuepublic java.lang.String toNaturalLanguage(int language, boolean determined)
toNaturalLanguage
method here.
toNaturalLanguage
in class EuLine
language
- an int
valuedetermined
- a boolean
value
String
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |