|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectus.ihmc.utilities.math.geometry.FramePoint2d
public class FramePoint2d
Title: FramePoint2d
Description: A FramePoint2d is a normal point associated with a specified reference frame
Copyright: Copyright (c) 2006
Company: IHMC
| Constructor Summary | |
|---|---|
FramePoint2d(FramePoint2d framePoint)
FramePoint2d A normal point associated with a specific reference frame |
|
FramePoint2d(FramePoint2d framePoint,
java.lang.String name)
|
|
FramePoint2d(FrameVector2d frameVector)
FramePoint2d Converts frameVector to framePoint |
|
FramePoint2d(FrameVector2d frameVector,
java.lang.String name)
|
|
FramePoint2d(ReferenceFrame referenceFrame)
FramePoint2d A normal point associated with a specific reference frame |
|
FramePoint2d(ReferenceFrame referenceFrame,
double[] position)
|
|
FramePoint2d(ReferenceFrame referenceFrame,
double[] position,
java.lang.String name)
|
|
FramePoint2d(ReferenceFrame referenceFrame,
double x,
double y)
FramePoint2d A normal point associated with a specific reference frame. |
|
FramePoint2d(ReferenceFrame referenceFrame,
double x,
double y,
java.lang.String name)
|
|
FramePoint2d(ReferenceFrame referenceFrame,
java.lang.String name)
|
|
FramePoint2d(ReferenceFrame referenceFrame,
javax.vecmath.Tuple2d position)
FramePoint2d A normal point associated with a specific reference frame |
|
FramePoint2d(ReferenceFrame referenceFrame,
javax.vecmath.Tuple2d position,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
add(FramePoint2d framePoint)
|
void |
add(FramePoint2d point1,
FramePoint2d point2)
|
void |
add(FramePoint2d point1,
FrameVector2d vector2)
|
void |
add(FrameVector2d frameVector)
|
void |
add(FrameVector2d vector1,
FramePoint2d point2)
|
void |
applyTransform(javax.media.j3d.Transform3D transform)
|
FramePoint2d |
applyTransformCopy(javax.media.j3d.Transform3D transform3D)
|
FramePoint2d |
changeFrameCopy(ReferenceFrame desiredFrame)
Changes frame of this FramePoint2d to the given ReferenceFrame and returns a copy. |
static FramePoint2d[] |
changeFrameCopyBatch(FramePoint2d[] framePoints,
ReferenceFrame desiredFrame)
|
FramePoint2d |
changeFrameUsingTransformCopy(ReferenceFrame desiredFrame,
javax.media.j3d.Transform3D transformToNewFrame)
Changes frame of this FramePoint2d to the given ReferenceFrame, using the given Transform3D and returns a copy. |
void |
checkForNaN()
|
void |
checkReferenceFrameMatch(ReferenceFrame frame)
|
void |
checkReferenceFrameMatch(ReferenceFrameHolder referenceFrameHolder)
Makes sure that the FramePoint2d argument has the same Frame as the current FramePoint2d. |
boolean |
containsNaN()
|
double |
distance(FramePoint2d framePoint)
|
double |
distanceSquared(FramePoint2d framePoint)
|
boolean |
epsilonEquals(FramePoint2d framePoint,
double threshold)
|
boolean |
epsilonEquals(FrameVector2d frameVector,
double threshold)
|
static FramePoint2d |
generateRandomFramePoint2d(java.util.Random random,
ReferenceFrame zUpFrame,
double xMin,
double xMax,
double yMin,
double yMax)
|
java.lang.String |
getName()
|
javax.vecmath.Point2d |
getPoint()
Returns the point in this FramePoint2d. |
javax.vecmath.Point2d |
getPointCopy()
Returns a deep copy of the point in this FramePoint2d. |
ReferenceFrame |
getReferenceFrame()
|
double |
getX()
|
double |
getY()
|
static FramePoint2d |
load(java.io.BufferedReader bufferedReader,
ReferenceFrame referenceFrame)
|
static FramePoint2d |
morph(FramePoint2d point1,
FramePoint2d point2,
double alpha)
|
void |
save(java.io.PrintWriter printWriter)
|
void |
scale(double scaleFactor)
|
void |
scale(double scaleFactor,
FramePoint2d point1)
|
void |
scale(double scaleFactor,
FrameVector2d vector1)
|
void |
scaleAdd(double scaleFactor,
FramePoint2d point1)
|
void |
scaleAdd(double scaleFactor,
FramePoint2d point1,
FramePoint2d point2)
|
void |
scaleAdd(double scaleFactor,
FramePoint2d point1,
FrameVector2d vector2)
|
void |
scaleAdd(double scaleFactor,
FrameVector2d vector1)
|
void |
scaleAdd(double scaleFactor,
FrameVector2d vector1,
FramePoint2d point2)
|
void |
scaleAdd(double scaleFactor,
FrameVector2d vector1,
FrameVector2d vector2)
|
void |
set(double x,
double y)
|
void |
set(FramePoint2d framePoint)
|
void |
set(FrameVector2d frameVector)
|
void |
setName(java.lang.String name)
|
void |
setX(double x)
|
void |
setY(double y)
|
void |
sub(FramePoint2d framePoint)
|
void |
sub(FramePoint2d point1,
FramePoint2d point2)
|
void |
sub(FramePoint2d point1,
FrameVector2d vector2)
|
void |
sub(FrameVector2d frameVector)
|
void |
sub(FrameVector2d vector1,
FramePoint2d point2)
|
double[] |
toArray()
|
static double[] |
toArray(FramePoint2d[] framePoints)
|
java.lang.String |
toString()
toString String representation of a FrameVector (x,y,z):reference frame name |
void |
weightedAverage(FramePoint2d point1,
FramePoint2d point2,
double weightedAverage)
Sets this point to be the weighted average of the two input points. |
FramePoint2d |
yawAboutPoint(FramePoint2d pointToYawAbout,
double yaw)
yawAboutPoint |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FramePoint2d(ReferenceFrame referenceFrame,
javax.vecmath.Tuple2d position)
referenceFrame - Framepoint - Point2d
public FramePoint2d(ReferenceFrame referenceFrame,
javax.vecmath.Tuple2d position,
java.lang.String name)
public FramePoint2d(ReferenceFrame referenceFrame,
double[] position)
public FramePoint2d(ReferenceFrame referenceFrame,
double[] position,
java.lang.String name)
public FramePoint2d(ReferenceFrame referenceFrame)
referenceFrame - Frame
public FramePoint2d(ReferenceFrame referenceFrame,
java.lang.String name)
public FramePoint2d(FramePoint2d framePoint)
referenceFrame - Framepoint - Point3d
public FramePoint2d(FramePoint2d framePoint,
java.lang.String name)
public FramePoint2d(FrameVector2d frameVector)
referenceFrame - Framepoint - Point2d
public FramePoint2d(FrameVector2d frameVector,
java.lang.String name)
public FramePoint2d(ReferenceFrame referenceFrame,
double x,
double y)
referenceFrame - Framex - doubley - doublez - double
public FramePoint2d(ReferenceFrame referenceFrame,
double x,
double y,
java.lang.String name)
| Method Detail |
|---|
public void setName(java.lang.String name)
public java.lang.String getName()
public static FramePoint2d morph(FramePoint2d point1,
FramePoint2d point2,
double alpha)
public ReferenceFrame getReferenceFrame()
getReferenceFrame in interface ReferenceFrameHolderpublic double distance(FramePoint2d framePoint)
public double distanceSquared(FramePoint2d framePoint)
public double getX()
public double getY()
public void set(double x,
double y)
public void setX(double x)
public void setY(double y)
public void scale(double scaleFactor)
public double[] toArray()
public void scale(double scaleFactor,
FrameVector2d vector1)
public void scale(double scaleFactor,
FramePoint2d point1)
public void scaleAdd(double scaleFactor,
FrameVector2d vector1,
FrameVector2d vector2)
public void scaleAdd(double scaleFactor,
FrameVector2d vector1,
FramePoint2d point2)
public void scaleAdd(double scaleFactor,
FramePoint2d point1,
FrameVector2d vector2)
public void scaleAdd(double scaleFactor,
FramePoint2d point1,
FramePoint2d point2)
public void scaleAdd(double scaleFactor,
FrameVector2d vector1)
public void scaleAdd(double scaleFactor,
FramePoint2d point1)
public javax.vecmath.Point2d getPoint()
public javax.vecmath.Point2d getPointCopy()
public FramePoint2d changeFrameUsingTransformCopy(ReferenceFrame desiredFrame,
javax.media.j3d.Transform3D transformToNewFrame)
desiredFrame - ReferenceFrame to change the FramePoint2d into.transformToNewFrame - Transform3D from the current frame to the new desiredFrame
public FramePoint2d changeFrameCopy(ReferenceFrame desiredFrame)
changeFrameCopy in interface ReferenceFrameHolderdesiredFrame - ReferenceFrame to change the FramePoint2d into.
public void applyTransform(javax.media.j3d.Transform3D transform)
public FramePoint2d applyTransformCopy(javax.media.j3d.Transform3D transform3D)
public static FramePoint2d[] changeFrameCopyBatch(FramePoint2d[] framePoints,
ReferenceFrame desiredFrame)
public static double[] toArray(FramePoint2d[] framePoints)
public void checkReferenceFrameMatch(ReferenceFrameHolder referenceFrameHolder)
checkReferenceFrameMatch in interface ReferenceFrameHolderframePoint - FramePoint2d
public void checkReferenceFrameMatch(ReferenceFrame frame)
throws ReferenceFrameMismatchException
checkReferenceFrameMatch in interface ReferenceFrameHolderReferenceFrameMismatchExceptionpublic void checkForNaN()
public boolean containsNaN()
public void add(FramePoint2d framePoint)
public void add(FrameVector2d frameVector)
public void add(FramePoint2d point1,
FramePoint2d point2)
public void add(FramePoint2d point1,
FrameVector2d vector2)
public void add(FrameVector2d vector1,
FramePoint2d point2)
public void sub(FramePoint2d framePoint)
public void sub(FrameVector2d frameVector)
public void sub(FramePoint2d point1,
FramePoint2d point2)
public void sub(FramePoint2d point1,
FrameVector2d vector2)
public void sub(FrameVector2d vector1,
FramePoint2d point2)
public void set(FramePoint2d framePoint)
public void set(FrameVector2d frameVector)
public void weightedAverage(FramePoint2d point1,
FramePoint2d point2,
double weightedAverage)
point1 - FramePoint2dpoint2 - FramePoint2dweightedAverage - double
ReferenceFrameMismatchExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void save(java.io.PrintWriter printWriter)
public static FramePoint2d load(java.io.BufferedReader bufferedReader,
ReferenceFrame referenceFrame)
throws java.io.IOException
java.io.IOException
public boolean epsilonEquals(FramePoint2d framePoint,
double threshold)
public boolean epsilonEquals(FrameVector2d frameVector,
double threshold)
public FramePoint2d yawAboutPoint(FramePoint2d pointToYawAbout,
double yaw)
pointToYawAbout - FramePoint2dyaw - double
public static FramePoint2d generateRandomFramePoint2d(java.util.Random random,
ReferenceFrame zUpFrame,
double xMin,
double xMax,
double yMin,
double yMax)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||