Class Edge<T extends Vector3d>

java.lang.Object
org.eclipse.mosaic.lib.spatial.Edge<T>
All Implemented Interfaces:
Serializable

public class Edge<T extends Vector3d> extends Object implements Serializable
See Also:
  • Field Details

  • Constructor Details

    • Edge

      public Edge(T a, T b)
  • Method Details

    • isLeftOfEdge

      public boolean isLeftOfEdge(Vector3d queryPt)
    • isLeftOfEdge

      public boolean isLeftOfEdge(Vector3d queryPt, Vector3d up)
    • getDistanceToPoint

      public double getDistanceToPoint(Vector3d point)
    • getDistanceToRay

      public double getDistanceToRay(Ray ray)
    • getNearestPointOnEdge

      public Vector3d getNearestPointOnEdge(Vector3d queryPt)
    • getNearestPointOnEdge

      public Vector3d getNearestPointOnEdge(Vector3d point, Vector3d result)
    • getNearestPointOnEdge

      public Vector3d getNearestPointOnEdge(Ray ray)
    • getNearestPointOnEdge

      public Vector3d getNearestPointOnEdge(Ray ray, Vector3d result)
    • getNearestPointOnEdge

      public Vector3d getNearestPointOnEdge(Edge<?> otherEdge)
    • getNearestPointOnEdge

      public Vector3d getNearestPointOnEdge(Edge<?> otherEdge, Vector3d result)
    • getLength

      public double getLength()