public static int[] getLineOfSightVertexIndicesCopy(Point2d observer, ConvexPolygon2d polygon) { int[] ret = new int[2]; if (getLineOfSightVertexIndices(observer, ret, polygon)) return ret; return null; }
public boolean getLineOfSightVertexIndices(FramePoint2d observer, int[] idicesToPack) { checkReferenceFrameMatch(observer); return ConvexPolygon2dCalculator.getLineOfSightVertexIndices(observer.getPoint(), idicesToPack, convexPolygon); }
success = ConvexPolygon2dCalculator.getLineOfSightVertexIndices(polygon1.getVertex(0), verticesIndices[1], polygon2); return success; success = ConvexPolygon2dCalculator.getLineOfSightVertexIndices(polygon2.getVertex(0), verticesIndices[0], polygon1); return success; success = ConvexPolygon2dCalculator.getLineOfSightVertexIndices(vertex, lineOfSight1, polygon2); if (!success) return false; success = ConvexPolygon2dCalculator.getLineOfSightVertexIndices(polygon2.getVertex(R2), lineOfSight1, polygon1); if (!success) return false; success = ConvexPolygon2dCalculator.getLineOfSightVertexIndices(polygon2.getVertex(L2), lineOfSight2, polygon1); if (!success) return false; success = ConvexPolygon2dCalculator.getLineOfSightVertexIndices(polygon1.getVertex(L1), lineOfSight1, polygon2); if (!success) return false; success = ConvexPolygon2dCalculator.getLineOfSightVertexIndices(polygon1.getVertex(R1), lineOfSight2, polygon2); if (!success) return false; success = ConvexPolygon2dCalculator.getLineOfSightVertexIndices(polygon2.getVertex(L2), lineOfSight1, polygon1); if (!success) return false; success = ConvexPolygon2dCalculator.getLineOfSightVertexIndices(polygon2.getVertex(R2), lineOfSight2, polygon1); if (!success)