isPointVisible method

bool isPointVisible(
  1. GraphPosition graphPoint
)

Checks if a graph coordinate point is visible in the current viewport.

Parameters:

  • graphPoint: The point to check in graph coordinates

Returns true if the point is within the visible viewport, false otherwise.

Implementation

bool isPointVisible(GraphPosition graphPoint) {
  return viewportExtent.contains(graphPoint);
}