Tabnine Logo
LineSegment2d.intersectionWith
Code IndexAdd Tabnine to your IDE (free)

How to use
intersectionWith
method
in
us.ihmc.robotics.geometry.LineSegment2d

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

origin: us.ihmc/IHMCRoboticsToolkit

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

/**
* Find the intersection point between this FrameLineSegment2d and the argument FrameLine2d and store it in the FramePoint2d argument.
* @param intersectionPointToPack argument in which the intersect point is stored
* @param line used to find the intersection with this line segment
* @return true if successful, false otherwise.
*/
public boolean intersectionWith(FramePoint2d intersectionPointToPack, FrameLine2d line)
{
 checkReferenceFrameMatch(line);
 Point2d intersection = this.lineSegment.intersectionWith(line.line);
 if (intersection == null)
   return false;
 intersectionPointToPack.setIncludingFrame(line.getReferenceFrame(), intersection);
 return true;
}
us.ihmc.robotics.geometryLineSegment2dintersectionWith

Popular methods of LineSegment2d

  • <init>
  • set
  • areEndpointsTheSame
  • getFirstEndpoint
  • getFirstEndpointCopy
  • getFirstEndpointX
  • getFirstEndpointY
  • getSecondEndpoint
  • getSecondEndpointX
  • getSecondEndpointY
  • getSecondEndpointCopy
  • length
  • getSecondEndpointCopy,
  • length,
  • orthogonalProjection,
  • percentageAlongLineSegment,
  • applyTransform,
  • applyTransformAndProjectToXYPlane,
  • checkEndpointsDistinct,
  • checkIsTransformationInPlane,
  • distance,
  • dotProduct

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • 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