|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectus.ihmc.utilities.math.geometry.Line2d
public class Line2d
Title:
Description:
Copyright: Copyright (c) 2007
Company:
Constructor Summary | |
---|---|
Line2d(Line2d line2d)
|
|
Line2d(javax.vecmath.Point2d firstPointOnLine,
javax.vecmath.Point2d secondPointOnLine)
|
|
Line2d(javax.vecmath.Point2d point,
javax.vecmath.Vector2d vector)
|
Method Summary | |
---|---|
void |
applyTransform(javax.media.j3d.Transform3D transform)
|
void |
applyTransform(javax.media.j3d.Transform3D transform,
boolean requireTransformInPlane)
|
Line2d |
applyTransformCopy(javax.media.j3d.Transform3D transform)
|
Line2d |
applyTransformCopy(javax.media.j3d.Transform3D transform,
boolean requireTransformInPlane)
|
boolean |
containsEpsilon(javax.vecmath.Point2d point,
double epsilon)
|
boolean |
containsNaN()
|
double |
distance(ConvexPolygon2d convexPolygon)
|
double |
distance(Line2d line)
|
double |
distance(LineSegment2d lineSegment)
|
double |
distance(javax.vecmath.Point2d point)
|
double |
distanceSquared(javax.vecmath.Point2d point)
|
boolean |
equals(Line2d otherLine)
|
javax.vecmath.Vector2d |
getNormalizedVector()
|
javax.vecmath.Vector2d |
getNormalizedVectorCopy()
|
double |
getParameterGivenPointEpsilon(javax.vecmath.Point2d point,
double epsilon)
|
javax.vecmath.Point2d |
getPoint()
|
javax.vecmath.Point2d |
getPointCopy()
|
javax.vecmath.Point2d |
getPointGivenParameter(double t)
|
double |
getSlope()
|
double |
getXIntercept()
|
double |
getYIntercept()
|
Line2d |
interiorBisector(Line2d secondLine)
|
javax.vecmath.Point2d[] |
intersectionWith(ConvexPolygon2d convexPolygon)
|
javax.vecmath.Point2d |
intersectionWith(Line2d secondLine)
|
javax.vecmath.Point2d |
intersectionWith(LineSegment2d lineSegment)
|
boolean |
isPointBehindLine(javax.vecmath.Point2d point)
|
boolean |
isPointInFrontOfLine(javax.vecmath.Point2d point)
isPointInFrontOfLine returns whether the point is in front of the line or not. |
boolean |
isPointOnLeftSideOfLine(javax.vecmath.Point2d point)
|
boolean |
isPointOnRightSideOfLine(javax.vecmath.Point2d point)
|
void |
negateDirection()
|
Line2d |
negateDirectionCopy()
|
void |
orthogonalProjection(javax.vecmath.Point2d point2d)
|
javax.vecmath.Point2d |
orthogonalProjectionCopy(javax.vecmath.Point2d point)
|
Line2d |
perpendicularLineThroughPoint(javax.vecmath.Point2d point)
|
javax.vecmath.Vector2d |
perpendicularVector()
|
void |
rotate(double radians)
|
void |
set(double x0,
double y0,
double vx,
double vy)
|
void |
set(Line2d line2d)
|
void |
set(javax.vecmath.Point2d[] endpoints)
|
void |
set(javax.vecmath.Point2d endpoint0,
javax.vecmath.Point2d endpoint1)
|
void |
setParallelLineThroughPoint(javax.vecmath.Point2d point)
|
void |
setPoint2d(javax.vecmath.Point2d point2d)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Line2d(javax.vecmath.Point2d point, javax.vecmath.Vector2d vector)
public Line2d(javax.vecmath.Point2d firstPointOnLine, javax.vecmath.Point2d secondPointOnLine)
public Line2d(Line2d line2d)
Method Detail |
---|
public javax.vecmath.Point2d getPoint()
public javax.vecmath.Point2d getPointCopy()
public javax.vecmath.Vector2d getNormalizedVector()
public javax.vecmath.Vector2d getNormalizedVectorCopy()
public double getSlope()
public javax.vecmath.Point2d getPointGivenParameter(double t)
public double getParameterGivenPointEpsilon(javax.vecmath.Point2d point, double epsilon)
public double getXIntercept()
public double getYIntercept()
public boolean containsEpsilon(javax.vecmath.Point2d point, double epsilon)
public void negateDirection()
public Line2d negateDirectionCopy()
public void setPoint2d(javax.vecmath.Point2d point2d)
public void set(javax.vecmath.Point2d endpoint0, javax.vecmath.Point2d endpoint1)
public void set(double x0, double y0, double vx, double vy)
public void set(javax.vecmath.Point2d[] endpoints)
public void set(Line2d line2d)
public void rotate(double radians)
public Line2d interiorBisector(Line2d secondLine)
public javax.vecmath.Vector2d perpendicularVector()
public Line2d perpendicularLineThroughPoint(javax.vecmath.Point2d point)
public javax.vecmath.Point2d intersectionWith(LineSegment2d lineSegment)
intersectionWith
in interface Geometry2d
public javax.vecmath.Point2d intersectionWith(Line2d secondLine)
intersectionWith
in interface Geometry2d
public javax.vecmath.Point2d[] intersectionWith(ConvexPolygon2d convexPolygon)
intersectionWith
in interface Geometry2d
public double distance(javax.vecmath.Point2d point)
distance
in interface Geometry2d
public double distanceSquared(javax.vecmath.Point2d point)
public double distance(Line2d line)
distance
in interface Geometry2d
public double distance(LineSegment2d lineSegment)
distance
in interface Geometry2d
public double distance(ConvexPolygon2d convexPolygon)
distance
in interface Geometry2d
public java.lang.String toString()
toString
in class java.lang.Object
public void applyTransform(javax.media.j3d.Transform3D transform)
applyTransform
in interface Geometry2d
public void applyTransform(javax.media.j3d.Transform3D transform, boolean requireTransformInPlane)
applyTransform
in interface Geometry2d
public Line2d applyTransformCopy(javax.media.j3d.Transform3D transform)
applyTransformCopy
in interface Geometry2d
public Line2d applyTransformCopy(javax.media.j3d.Transform3D transform, boolean requireTransformInPlane)
applyTransformCopy
in interface Geometry2d
public boolean isPointOnLeftSideOfLine(javax.vecmath.Point2d point)
public boolean isPointOnRightSideOfLine(javax.vecmath.Point2d point)
public boolean isPointInFrontOfLine(javax.vecmath.Point2d point)
point
- Point2d
public boolean isPointBehindLine(javax.vecmath.Point2d point)
public void setParallelLineThroughPoint(javax.vecmath.Point2d point)
public boolean containsNaN()
public void orthogonalProjection(javax.vecmath.Point2d point2d)
orthogonalProjection
in interface Geometry2d
public javax.vecmath.Point2d orthogonalProjectionCopy(javax.vecmath.Point2d point)
orthogonalProjectionCopy
in interface Geometry2d
public boolean equals(Line2d otherLine)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |