Skip to main content

CorePlotting::LineIntersectionQuery

CorePlotting::LineIntersectionQuery

Parameters for a line-vs-batch intersection query. More…

#include <ILineBatchIntersector.hpp>

Public Attributes

Name
glm::vec2 start_ndc
Query line start in NDC [-1,1].
glm::vec2 end_ndc
Query line end in NDC [-1,1].
float tolerance
Proximity tolerance in NDC units.
glm::mat4 mvp
World → NDC transform.

Detailed Description

struct CorePlotting::LineIntersectionQuery;

Parameters for a line-vs-batch intersection query.

The query line is specified in NDC space [-1, 1]. Segments stored in LineBatchData are in world space and will be transformed by mvp before the intersection test.

Public Attributes Documentation

variable start_ndc

glm::vec2 start_ndc {0.0f, 0.0f};

Query line start in NDC [-1,1].

variable end_ndc

glm::vec2 end_ndc {0.0f, 0.0f};

Query line end in NDC [-1,1].

variable tolerance

float tolerance {0.05f};

Proximity tolerance in NDC units.

variable mvp

glm::mat4 mvp {1.0f};

World → NDC transform.


Updated on 2026-11-13 at 20:25:42 +0000