FlowArithmeticCalculator 1.0.0
Flow Arithmetic Calculator
Loading...
Searching...
No Matches
business_logic::geometry Namespace Reference

The 2D geometry utility module. More...

Classes

struct  Point2D
 A basic struct representing a 2D point. More...
 
struct  Size2D
 A basic struct representing a 2D size. More...
 

Functions

bool isCircleHovered (int mouseX, int mouseY, int cX, int cY, int radius)
 Check if a point is within a circle.
 

Detailed Description

The 2D geometry utility module.

Function Documentation

◆ isCircleHovered()

bool business_logic::geometry::isCircleHovered ( int  mouseX,
int  mouseY,
int  cX,
int  cY,
int  radius 
)

Check if a point is within a circle.

Parameters
mouseXThe x coordinate of the mouse
mouseYThe y coordinate of the mouse
cXThe x coordinate of the center of the circle
cYThe y coordinate of the center of the circle
radiusThe radius of the circle
Returns
True if the point is within the circle, false otherwise

Definition at line 4 of file helpers.cpp.

Referenced by business_logic::elements::blocks::BaseBlock::checkPort(), and gui::elements::SkiaBaseBlockRenderer::render().

+ Here is the caller graph for this function: