|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hedgehog.HObject
com.hedgehog.geo.GeometricObject
com.hedgehog.geo.twod.GeometricObject2D
com.hedgehog.geo.twod.curves.Curve2D
com.hedgehog.geo.twod.curves.LinearLine2D
com.hedgehog.geo.twod.curves.InfiniteStraightLine2D
public class InfiniteStraightLine2D
Title: InfiniteStraightLine2D - models an infinite straight line.
Description: Models a 2D straight line of infinite extent. InfiniteStraightLine2D extends LinearLine2D can be viewed as merely an alternative naming of class LinearLine2D.
Copyright: Copyright (c) Hedgehog Software 2007-2009.
Company: Hedgehog Software
| Field Summary |
|---|
| Fields inherited from class com.hedgehog.geo.twod.curves.LinearLine2D |
|---|
mLinearEquation |
| Fields inherited from class com.hedgehog.geo.twod.curves.Curve2D |
|---|
mp0, mp1 |
| Fields inherited from class com.hedgehog.HObject |
|---|
mID, mName |
| Constructor Summary | |
|---|---|
InfiniteStraightLine2D()
Default constructor. |
|
InfiniteStraightLine2D(ID id)
Constructor. |
|
InfiniteStraightLine2D(InfiniteStraightLine2D object)
Copy constructor. |
|
InfiniteStraightLine2D(LinearLine2D line)
Constructor. |
|
InfiniteStraightLine2D(Point2D p0,
Point2D p1)
Constructor. |
|
InfiniteStraightLine2D(java.lang.String name)
Constructor. |
|
InfiniteStraightLine2D(java.lang.String name,
ID id)
Constructor. |
|
| Method Summary | |
|---|---|
double |
minimumDistance(Point2D p,
double tolerance)
Returns the minimum distance from the specified point to an infinite straight-line. |
java.lang.String |
toString()
Returns a String representation of an InfiniteStraightLine2D object. |
| Methods inherited from class com.hedgehog.geo.GeometricObject |
|---|
objectDimension |
| Methods inherited from class com.hedgehog.HObject |
|---|
clone, compare, compareTo, copy, getID, getName, hashCode, hasID, hasName, setID, setName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.hedgehog.model.ModelObject |
|---|
childModelObjects, databaseInsertStatement, databaseUpdateStatement, fromDatabase, fromXMLNode, toX3DNode, toXMLNode |
| Constructor Detail |
|---|
public InfiniteStraightLine2D()
public InfiniteStraightLine2D(Point2D p0,
Point2D p1)
p0 - End-point p0.p1 - End-point p1.public InfiniteStraightLine2D(LinearLine2D line)
line - LinearLine2D object.public InfiniteStraightLine2D(java.lang.String name)
name - Object name.public InfiniteStraightLine2D(ID id)
id - Object ID.
public InfiniteStraightLine2D(java.lang.String name,
ID id)
name - Object name.id - Object ID.public InfiniteStraightLine2D(InfiniteStraightLine2D object)
object - Object to copy.| Method Detail |
|---|
public double minimumDistance(Point2D p,
double tolerance)
minimumDistance in class Curve2Dp - Point to find minimum distance to this line.tolerance - Required tolerance.
public java.lang.String toString()
toString in class LinearLine2D
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||