|
||||||||||
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
An instance of this class represents a line, represented as two cartesian pairs.
Field Summary | |
fundamentals.EuVector |
generator
A generating vector of the line. |
Fields inherited from class objects.EuParametrized |
anchor |
Fields inherited from class objects.EuObject |
infoHash, provenience, scaledown |
Constructor Summary | |
EuLine()
Contructor for dummy object |
|
EuLine(double x,
double y,
double theta)
The constructor does initialization. |
|
EuLine(double x,
double y,
double deltax,
double deltay)
The constructor does initialization. |
|
EuLine(objects.EuLine other)
Creates a new EuLine instance. |
|
EuLine(objects.EuPoint p1,
objects.EuPoint p2)
The line is instantiated through the two given points |
Method Summary | |
fundamentals.EuVector |
atParameter(double t)
Return in a EuVector the coordinates of a point on the
line at a given parameter. |
boolean |
castIdentical(objects.EuObject other)
See if passed object can be cast to the present one. |
objects.EuLine |
cloneMe()
Describe cloneMe method here. |
double |
closestParameter(double x,
double y)
Find the parameter value which yields the closest point to a given one. |
double |
closestParameterOnLine(double x,
double y)
Describe closestParameterOnLine method here. |
objects.plotCollection |
computeClip(fundamentals.mouseInfo info)
Compute the visible portion of the object as a collection of arcs, intervals or points. |
double |
confusionDistance(objects.EuObject other)
Returns the distance from this object to another under these simplifications: The distance to lines or circles is in {0,POSITIVE_INFINITY} unless this is a point. |
protected fundamentals.EuVector |
invisibleRandomPoint(fundamentals.mouseInfo info,
java.util.Random croupier)
Chooses a sensible point on the line when the line is invisible. |
boolean |
isFull()
Describe isFull method here. |
double |
nameDisplacementAngle(fundamentals.mouseInfo info)
Describe nameDisplacementAngle method here. |
double |
nameParameter(fundamentals.mouseInfo info)
Describe nameParameter method here. |
protected boolean |
onSameLine(objects.EuLine other)
Describe onSameLine method here. |
boolean |
overlaps(objects.EuObject other)
Acts identically to castIdentical () |
java.lang.String |
params()
Describe params method here. |
void |
passArguments(fundamentals.EuArguments args)
Describe passArguments method here. |
boolean |
superIdentical(objects.EuObject other)
See if passed object can be cast to the present one. |
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.EuParametrized |
atParameter, atParameter, closestParameter, closureContains, distance, interiorContains, 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.EuVector generator
Constructor Detail |
public EuLine(double x, double y, double deltax, double deltay) throws UserException
x
- the first coordinate of anchory
- the second coordinate of anchordeltax
- the first coordinate of generatordeltay
- the second coordinate of generator
UserException
- if an error occurspublic EuLine(double x, double y, double theta) throws UserException
x
- the first coordinate of anchory
- the second coordinate of anchortheta
- the angle of the generator
UserException
- if an error occurspublic EuLine(objects.EuLine other)
EuLine
instance.
other
- an EuLine
valuepublic EuLine()
public EuLine(objects.EuPoint p1, objects.EuPoint p2) throws UserException
p1
- an EuPoint
valuep2
- an EuPoint
value
UserException
- if an error occursMethod Detail |
public fundamentals.EuVector atParameter(double t)
EuVector
the coordinates of a point on the
line at a given parameter.
atParameter
in class EuParametrized
t
- the parameter
public double closestParameter(double x, double y)
closestParameter
in class EuParametrized
x
- The first coordinate of the given pointy
- The second coordinate of the given point
public double closestParameterOnLine(double x, double y)
closestParameterOnLine
method here.
x
- a double
valuey
- a double
value
double
valuepublic objects.plotCollection computeClip(fundamentals.mouseInfo info) throws UserException
computeClip
in class EuObject
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) throws UserException
invisibleRandomPoint
in class EuParametrized
info
- a mouseInfo
valuecroupier
- a Random
value
EuVector
value
UserException
- if an error occurspublic boolean castIdentical(objects.EuObject other)
castIdentical
in class EuObject
other
- an EuObject
value
EuLine
, EuHalf
or
EuInterval
which is a subset of this one @param other the
object being compared to the present onepublic boolean superIdentical(objects.EuObject other)
other
- an EuObject
value
EuLine
, EuHalf
or
EuInterval
which is a subset of this one @param other the
object being compared to the present oneprotected boolean onSameLine(objects.EuLine other)
onSameLine
method here.
other
- an EuLine
value
boolean
valuepublic boolean overlaps(objects.EuObject other)
castIdentical
()
overlaps
in class EuObject
other
- an EuObject
value
EuLine
, EuHalf
or
EuInterval
which is a subset of this one @param other the
object being compared to the present onepublic double confusionDistance(objects.EuObject other)
confusionDistance
in class EuParametrized
other
- an EuObject
value
public char typeName()
typeName
method here.
typeName
in class EuObject
public boolean isFull()
isFull
method here.
isFull
in class EuObject
public java.lang.String params()
params
method here.
params
in class EuParametrized
public java.lang.String toString()
toString
method here.
toString
in class EuObject
public objects.EuLine cloneMe()
cloneMe
method here.
EuLine
valuepublic void passArguments(fundamentals.EuArguments args)
passArguments
method here.
passArguments
in class EuParametrized
args
- an EuArguments
valuepublic java.lang.String toNaturalLanguage(int language, boolean determined)
toNaturalLanguage
method here.
toNaturalLanguage
in class EuObject
language
- an int
valuedetermined
- a boolean
value
String
valuepublic double nameDisplacementAngle(fundamentals.mouseInfo info)
nameDisplacementAngle
method here.
nameDisplacementAngle
in class EuObject
info
- a mouseInfo
value
double
valuepublic double nameParameter(fundamentals.mouseInfo info)
nameParameter
method here. REDO!!!
nameParameter
in class EuParametrized
info
- a mouseInfo
value
double
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |