Skip to content

Segment

Struct

Source: CollisionTypes.h

Description

Represents a 2D line segment for collision detection.

Properties

NameTypeDescription
x1pixelroot32::math::ScalarStart X coordinate.
y1pixelroot32::math::ScalarStart Y coordinate.
x2pixelroot32::math::ScalarEnd X coordinate.
y2pixelroot32::math::ScalarEnd Y coordinate.

Methods

bool intersects(const Circle& a, const Circle& b)

Description:

Checks intersection between two circles.

Parameters:

  • a: First circle.
  • b: Second circle.

Returns: True if circles intersect.

Released under the MIT License.