Tabnine Logo
FrameLineSegment2d.checkReferenceFrameMatch
Code IndexAdd Tabnine to your IDE (free)

How to use
checkReferenceFrameMatch
method
in
us.ihmc.robotics.geometry.FrameLineSegment2d

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

origin: us.ihmc/IHMCRoboticsToolkit

public double dotProduct(FrameLineSegment2d frameLineSegment2d)
{
 checkReferenceFrameMatch(frameLineSegment2d);
 return lineSegment.dotProduct(frameLineSegment2d.lineSegment);
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public double distance(FrameLine2d line)
{
 checkReferenceFrameMatch(line);
 return this.lineSegment.distance(line.line);
}
origin: us.ihmc/IHMCRoboticsToolkit

public void set(ReferenceFrame referenceFrame, double firstEndpointX, double firstEndpointY, double secondEndpointX, double secondEndpointY)
{
 checkReferenceFrameMatch(referenceFrame);
 this.lineSegment.set(firstEndpointX, firstEndpointY, secondEndpointX, secondEndpointY);
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public void set(FrameLineSegment2d lineSegment)
{
 checkReferenceFrameMatch(lineSegment);
 this.lineSegment.set(lineSegment.lineSegment);
}
origin: us.ihmc/IHMCRoboticsToolkit

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

public void set(FramePoint2d firstEndpoint, FramePoint2d secondEndpoint)
{
 checkReferenceFrameMatch(firstEndpoint);
 checkReferenceFrameMatch(secondEndpoint);
 this.lineSegment.set(firstEndpoint.getPoint(), secondEndpoint.getPoint());
}
origin: us.ihmc/IHMCRoboticsToolkit

public void set(FramePoint2d firstEndpoint, FrameVector2d vectorToSecondEndpoint)
{
 checkReferenceFrameMatch(firstEndpoint);
 checkReferenceFrameMatch(vectorToSecondEndpoint);
 this.lineSegment.set(firstEndpoint.getPoint(), vectorToSecondEndpoint.getVector());
}
origin: us.ihmc/IHMCRoboticsToolkit

public void set(FramePoint2d[] endpoints)
{
 checkReferenceFrameMatch(endpoints[0]);
 checkReferenceFrameMatch(endpoints[1]);
 this.lineSegment.set(endpoints[0].getPoint(), endpoints[1].getPoint());
}
origin: us.ihmc/IHMCRoboticsToolkit

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

public boolean isPointOnRightSideOfLineSegment(FramePoint2d point)
{
 checkReferenceFrameMatch(point);
 return this.lineSegment.isPointOnRightSideOfLineSegment(point.getPointCopy());
}
origin: us.ihmc/IHMCRoboticsToolkit

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

@Override
public FramePoint2d[] intersectionWith(FrameConvexPolygon2d convexPolygon)
{
 checkReferenceFrameMatch(convexPolygon);
 Point2d[] intersection = this.lineSegment.intersectionWith(convexPolygon.convexPolygon);
 FramePoint2d[] ret = new FramePoint2d[intersection.length];
 for (int i = 0; i < intersection.length; i++)
 {
   ret[i] = new FramePoint2d(convexPolygon.referenceFrame, intersection[i]);
 }
 return ret;
}
origin: us.ihmc/IHMCRoboticsToolkit

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

public boolean isPointOnLeftSideOfLineSegment(FramePoint2d point)
{
 checkReferenceFrameMatch(point);
 point.get(tempPoint2d);
 return this.lineSegment.isPointOnLeftSideOfLineSegment(tempPoint2d);
}
origin: us.ihmc/IHMCRoboticsToolkit

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

public void setByProjectionOntoXYPlane(FramePoint firstEndpoint, FramePoint secondEndpoint)
{
 checkReferenceFrameMatch(firstEndpoint);
 checkReferenceFrameMatch(secondEndpoint);
 
 this.lineSegment.set(firstEndpoint.getX(), firstEndpoint.getY(), secondEndpoint.getX(), secondEndpoint.getY());
}
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

@Override
public FramePoint2d intersectionWith(FrameLineSegment2d secondLineSegment)
{
 checkReferenceFrameMatch(secondLineSegment);
 Point2d intersection = this.lineSegment.intersectionWith(secondLineSegment.lineSegment);
 if (intersection == null)
 {
   return null;
 }
 return new FramePoint2d(secondLineSegment.getReferenceFrame(), intersection);
}
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

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

Popular methods of FrameLineSegment2d

  • <init>
  • set
  • getFrameVector
  • orthogonalProjection
  • setIncludingFrame
  • applyTransform
  • applyTransformAndProjectToXYPlane
  • changeFrameAndProjectToXYPlane
  • distance
  • get
  • getFirstEndpoint
  • getGeometryObject
  • getFirstEndpoint,
  • getGeometryObject,
  • getLineSegment2d,
  • getReferenceFrame,
  • getSecondEndpoint,
  • intersectionWith,
  • isBetweenEndpoints,
  • isPointOnLeftSideOfLineSegment,
  • length

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • getApplicationContext (Context)
  • Menu (java.awt)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Notification (javax.management)
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is 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