congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ConvexHullFootstepSnapper.getPointInPolygonNearestPoint
Code IndexAdd Tabnine to your IDE (free)

How to use
getPointInPolygonNearestPoint
method
in
us.ihmc.humanoidRobotics.footstep.footstepSnapper.ConvexHullFootstepSnapper

Best Java code snippets using us.ihmc.humanoidRobotics.footstep.footstepSnapper.ConvexHullFootstepSnapper.getPointInPolygonNearestPoint (Showing top 2 results out of 315)

origin: us.ihmc/IHMCHumanoidRobotics

private ArrayList<Point2d> reduceListOfPointsToFourFootstepBased(List<Point2d> listOfPoints)
{
 ConvexPolygon2d basePolygon = parameters.getCollisionPolygon();
 ConvexPolygon2d supportPolygon = new ConvexPolygon2d(listOfPoints);
 supportPolygon.update();
 ArrayList<Point2d> finalListOfSupportPoints = new ArrayList<Point2d>();
 //for each vertex of the basePolygon, find the closest point inside the support polygon.
 int size = basePolygon.getNumberOfVertices();
 for (int i = 0; i < size; i++)
 {
   Point2d vertex = basePolygon.getVertex(i);
   Point2d correspondingSupportPoint = getPointInPolygonNearestPoint(supportPolygon, vertex);
   finalListOfSupportPoints.add(correspondingSupportPoint);
 }
 return finalListOfSupportPoints;
}
origin: us.ihmc/ihmc-humanoid-robotics

private List<Point2D> reduceListOfPointsToFourFootstepBased(List<? extends Point2DReadOnly> listOfPoints)
{
 ConvexPolygon2D basePolygon = parameters.getCollisionPolygon();
 ConvexPolygon2D supportPolygon = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(listOfPoints));
 supportPolygon.update();
 ArrayList<Point2D> finalListOfSupportPoints = new ArrayList<Point2D>();
 //for each vertex of the basePolygon, find the closest point inside the support polygon.
 int size = basePolygon.getNumberOfVertices();
 for (int i = 0; i < size; i++)
 {
   Point2DReadOnly vertex = basePolygon.getVertex(i);
   Point2D correspondingSupportPoint = getPointInPolygonNearestPoint(supportPolygon, vertex);
   finalListOfSupportPoints.add(correspondingSupportPoint);
 }
 return finalListOfSupportPoints;
}
us.ihmc.humanoidRobotics.footstep.footstepSnapperConvexHullFootstepSnappergetPointInPolygonNearestPoint

Popular methods of ConvexHullFootstepSnapper

  • <init>
  • generateFootstepUsingHeightMap
  • reduceListOfPointsByArea
  • setUseMask
  • addLowerBoundaryPointsToHullPointList
  • adjustFootstepWithoutHeightmap
  • computePartialFootstepFromPoints
  • generateFootstepWithoutHeightMap
  • getPointList
  • getPredictedContactPointsForFootstep
  • reduceListOfPointsToFourFootstepBased
  • setMask
  • reduceListOfPointsToFourFootstepBased,
  • setMask,
  • snapFootstep,
  • updateParameters

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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