Tabnine Logo
FramePoint2d.getPoint
Code IndexAdd Tabnine to your IDE (free)

How to use
getPoint
method
in
us.ihmc.robotics.geometry.FramePoint2d

Best Java code snippets using us.ihmc.robotics.geometry.FramePoint2d.getPoint (Showing top 20 results out of 315)

origin: us.ihmc/IHMCRoboticsToolkit

public void orthogonalProjection(FramePoint2d point, FramePoint2d projectedPointToPack)
{
 checkReferenceFrameMatch(point);
 projectedPointToPack.setToZero(referenceFrame);
 lineSegment.orthogonalProjection(point.getPoint(), projectedPointToPack.getPoint());
}
origin: us.ihmc/IHMCRoboticsToolkit

public void set(FramePoint2d endpoint0, FramePoint2d endpoint1)
{
 checkReferenceFrameMatch(endpoint0);
 checkReferenceFrameMatch(endpoint1);
 this.line.set(endpoint0.getPoint(), endpoint1.getPoint());
}
origin: us.ihmc/IHMCRoboticsToolkit

public int[] getLineOfSightVertexIndicesCopy(FramePoint2d observer)
{
 checkReferenceFrameMatch(observer);
 return ConvexPolygon2dCalculator.getLineOfSightVertexIndicesCopy(observer.getPoint(), convexPolygon);
}
origin: us.ihmc/IHMCRoboticsToolkit

public boolean isBetweenEndpoints(FramePoint2d point2d, double epsilon)
{
 checkReferenceFrameMatch(point2d);
 return lineSegment.isBetweenEndpoints(point2d.getPoint(), epsilon);
}
origin: us.ihmc/IHMCRoboticsToolkit

/**
* Add a vertex to this polygon.
* Note that this method recycles memory.
* @param newVertex {@code FramePoint2d} the new vertex (it is not modified).
* @throws ReferenceFrameMismatchException
*/
public void addVertex(FramePoint2d vertex)
{
 vertex.checkReferenceFrameMatch(referenceFrame);
 addVertex(vertex.getPoint());
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public double distance(FramePoint2d point)
{
 checkReferenceFrameMatch(point);
 return this.convexPolygon.distance(point.getPoint());
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public void orthogonalProjection(FramePoint2d point)
{
 checkReferenceFrameMatch(point);
 convexPolygon.orthogonalProjection(point.getPoint());
}
origin: us.ihmc/IHMCRoboticsToolkit

public boolean getLineOfSightVertexIndices(FramePoint2d observer, int[] idicesToPack)
{
 checkReferenceFrameMatch(observer);
 return ConvexPolygon2dCalculator.getLineOfSightVertexIndices(observer.getPoint(), idicesToPack, convexPolygon);
}
origin: us.ihmc/IHMCRoboticsToolkit

/**
* There is actually no ray class at the moment, so we use a FrameLine2d.
*
* TODO: Make ray classes and use them. @dcalvert
*/
public void intersectWithRay(FrameConvexPolygon2d frameConvexPolygon2d, FrameLine2d frameRay2d)
{
 checkAndSetFrames(frameConvexPolygon2d, frameRay2d);
 int intersectionTypeInt = ConvexPolygon2dCalculator.intersectionWithRay(frameRay2d.getLine2d(), intersectionPointOne.getPoint(),
                                      intersectionPointTwo.getPoint(), frameConvexPolygon2d.getConvexPolygon2d());
 packIntersectionType(intersectionTypeInt);
}
origin: us.ihmc/IHMCRoboticsToolkit

/**
* Add a vertex to this polygon after doing {@code newVertex.changeFrameAndProjectToXYPlane(this.referenceFrame)}.
* Note that this method recycles memory.
* @param newVertex {@code FramePoint2d} the new vertex (it is not modified).
*/
public void addVertexChangeFrameAndProjectToXYPlane(FramePoint2d newVertex)
{
 tempPoint2d.setIncludingFrame(newVertex);
 tempPoint2d.changeFrameAndProjectToXYPlane(referenceFrame);
 convexPolygon.addVertex(tempPoint2d.getPoint());
}
origin: us.ihmc/IHMCRoboticsToolkit

public void getClosestPointOnLineSegment(FramePoint2d framePoint2dToPack, FramePoint2d point)
{
 checkReferenceFrameMatch(point);
 
 lineSegment.getClosestPointOnLineSegment(tempPoint2d, point.getPoint());
 framePoint2dToPack.setIncludingFrame(referenceFrame, tempPoint2d);
}
origin: us.ihmc/IHMCRoboticsToolkit

public void setPoint(FramePoint2d framePoint2d)
{
 checkReferenceFrameMatch(framePoint2d);
 
 line.getPoint().set(framePoint2d.getPoint());
}
origin: us.ihmc/IHMCRoboticsToolkit

public void getClosestVertex(FramePoint2d closestVertexToPack, FramePoint2d point)
{
 point.checkReferenceFrameMatch(referenceFrame);
 closestVertexToPack.setIncludingFrame(referenceFrame, ConvexPolygon2dCalculator.getClosestVertexCopy(point.getPoint(), convexPolygon));
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public FramePoint2d orthogonalProjectionCopy(FramePoint2d point)
{
 checkReferenceFrameMatch(point);
 Point2d projected = lineSegment.orthogonalProjectionCopy(point.getPoint());
 return new FramePoint2d(point.getReferenceFrame(), projected);
}
origin: us.ihmc/IHMCRoboticsToolkit

public void set(FramePoint2d startPoint, FrameVector2d vector)
{
 checkReferenceFrameMatch(startPoint);
 checkReferenceFrameMatch(vector);
 this.line.set(startPoint.getPoint(), vector.getVector());
}
origin: us.ihmc/IHMCRoboticsToolkit

public boolean getClosestPointWithRay(FramePoint2d closestVertexToPack, FrameLine2d ray)
{
 ray.checkReferenceFrameMatch(referenceFrame);
 closestVertexToPack.setToZero(referenceFrame);
 boolean success = convexPolygon.getClosestPointWithRay(closestVertexToPack.getPoint(), ray.getLine2d());
 return success;
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public FramePoint2d orthogonalProjectionCopy(FramePoint2d point)
{
 checkReferenceFrameMatch(point);
 Point2d projected = convexPolygon.orthogonalProjectionCopy(point.getPoint());
 if (projected == null)
 {
   return null;
 }
 return new FramePoint2d(point.getReferenceFrame(), projected);
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public FramePoint2d orthogonalProjectionCopy(FramePoint2d point)
{
 checkReferenceFrameMatch(point);
 Point2d projected = line.orthogonalProjectionCopy(point.getPoint());
 return new FramePoint2d(point.getReferenceFrame(), projected);
}
origin: us.ihmc/IHMCRoboticsToolkit

public void getIntersectionWithLine(FrameLine2d line, FramePoint2d intersectionToPack)
{
 checkReferenceFrameMatch(line);
 checkReferenceFrameMatch(intersectionToPack);
 
 this.line.intersectionWith(line.getLine2d(), intersectionToPack.getPoint());
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public void orthogonalProjection(FramePoint2d point)
{
 checkReferenceFrameMatch(point);
 Point2d projected = line.orthogonalProjectionCopy(point.getPoint());
 point.set(projected.getX(), projected.getY());
}
us.ihmc.robotics.geometryFramePoint2dgetPoint

Javadoc

Returns the point in this FramePoint2d.

Popular methods of FramePoint2d

  • <init>
    FramePoint2d A normal point2d associated with a specific reference frame.
  • getX
  • getY
  • changeFrame
  • changeFrameAndProjectToXYPlane
    Changes frame of this FramePoint2d to the given ReferenceFrame, projects into xy plane.
  • checkReferenceFrameMatch
  • distance
  • getReferenceFrame
  • scale
  • set
  • setIncludingFrame
  • add
  • setIncludingFrame,
  • add,
  • containsNaN,
  • get,
  • getPointCopy,
  • interpolate,
  • setToNaN,
  • setToZero,
  • distanceSquared

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now