Tabnine Logo
FrameConvexPolygon2d.getVertex
Code IndexAdd Tabnine to your IDE (free)

How to use
getVertex
method
in
us.ihmc.robotics.geometry.FrameConvexPolygon2d

Best Java code snippets using us.ihmc.robotics.geometry.FrameConvexPolygon2d.getVertex (Showing top 5 results out of 315)

origin: us.ihmc/IHMCRoboticsToolkit

public void getVertex(int vertexIndex, Point2d vertexToPack)
{
 vertexToPack.set(getVertex(vertexIndex));
}
origin: us.ihmc/IHMCHumanoidRobotics

public void setSupportPolygon(RobotSide robotSide, FrameConvexPolygon2d footPolygon)
{
 int numberOfVertices = footPolygon.getNumberOfVertices();
 if (numberOfVertices > MAXIMUM_NUMBER_OF_VERTICES)
 {
   numberOfVertices = MAXIMUM_NUMBER_OF_VERTICES;
 }
 if (robotSide == RobotSide.LEFT)
 {
   leftFootSupportPolygonLength = numberOfVertices;
 }
 else
 {
   rightFootSupportPolygonLength = numberOfVertices;
 }
 for (int i = 0; i < numberOfVertices; i++)
 {
   if (robotSide == RobotSide.LEFT)
   {
    footPolygon.getVertex(i, leftFootSupportPolygonStore[i]);
   }
   else
   {
    footPolygon.getVertex(i, rightFootSupportPolygonStore[i]);
   }
 }
}
origin: us.ihmc/IHMCRoboticsToolkit

private void getYoValuesFromFrameConvexPolygon2d()
{
 numVertices.set(convexPolygon2dForWriting.getNumberOfVertices());
 try
 {
   for (int i = 0; i < numVertices.getIntegerValue(); i++)
   {
    yoFramePoints.get(i).checkReferenceFrameMatch(convexPolygon2dForWriting);
    yoFramePoints.get(i).set(convexPolygon2dForWriting.getVertex(i));
   }
 }
 catch (Exception e)
 {
   System.err.println("In YoFrameConvexPolygon2d.java: " + e.getClass().getSimpleName() + " while calling getYoValuesFromFrameConvexPolygon2d().");
   e.printStackTrace();
 }
}
origin: us.ihmc/IHMCRoboticsToolkit

private void drawPolygon(FrameConvexPolygon2d frameConvexPolygon2d, Graphics graphics)
{
 Polygon polygon = new Polygon();
 for (int i = 0; i < frameConvexPolygon2d.getNumberOfVertices(); i++)
 {
   Point2d vertex = frameConvexPolygon2d.getVertex(i);
   int xInt = doubleToInt(vertex.getX(), xCenter, scale, getWidth());
   int yInt = doubleToInt(vertex.getY(), yCenter, -scale, getHeight());
   polygon.addPoint(xInt, yInt);
 }
 graphics.drawPolygon(polygon);
}
origin: us.ihmc/CommonWalkingControlModules

for (int i = 0; i < projectionArea.getNumberOfVertices(); i++)
 vertex.setIncludingFrame(projectionArea.getReferenceFrame(), projectionArea.getVertex(i));
 finalICPToICPVector.setToZero(projectionArea.getReferenceFrame());
 finalICPToICPVector.sub(capturePoint, finalCapturePoint);
us.ihmc.robotics.geometryFrameConvexPolygon2dgetVertex

Popular methods of FrameConvexPolygon2d

  • <init>
    Creates an empty convex polygon attached to a reference frame, adds N new vertices using an array of
  • getNumberOfVertices
  • changeFrameAndProjectToXYPlane
  • getFrameVertex
  • isPointInside
    isPointInside Determines whether a point is inside the convex polygon (point in polygon test). Uses
  • getConvexPolygon2d
  • intersectionWith
  • setIncludingFrameAndUpdate
    This method does: 1- clear(referenceFrame); 2- addVertices(vertices); 3- update().
  • addVertex
    Add a vertex to this polygon. Note that this method recycles memory.
  • addVertexByProjectionOntoXYPlane
    Add a vertex to this polygon after doing newVertex2d.changeFrameAndProjectToXYPlane(this.referenceFr
  • addVertices
  • clear
    After calling this method, the polygon has no vertex, area, or centroid, and is attached to a new re
  • addVertices,
  • clear,
  • getCentroid,
  • getReferenceFrame,
  • isEmpty,
  • orthogonalProjection,
  • scale,
  • update,
  • addVertexAndChangeFrame

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • getSystemService (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • CodeWhisperer alternatives
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