Horizon
Loading...
Searching...
No Matches
Public Attributes | List of all members
SHAPE_LINE_CHAIN::INTERSECTION Struct Reference

Represent an intersection between two line segments. More...

#include <shape_line_chain.h>

Public Attributes

VECTOR2I p
 < Point of intersection between our and their.
 
int index_our
 index of the intersecting corner/segment in the 'their' (Intersect() method parameter) line.
 
int index_their
 When true, the corner [index_our] of the 'our' line lies exactly on 'their' line.
 
bool is_corner_our
 When true, the corner [index_their] of the 'their' line lies exactly on 'our' line.
 
bool is_corner_their
 Auxiliary flag to avoid copying intersection info to intersection refining code, used by the refining code (e.g.
 
bool valid
 

Detailed Description

Represent an intersection between two line segments.

Member Data Documentation

◆ is_corner_our

bool SHAPE_LINE_CHAIN::INTERSECTION::is_corner_our

When true, the corner [index_their] of the 'their' line lies exactly on 'our' line.

Note that when both is_corner_our and is_corner_their are set, the line chains touch with with corners.

◆ is_corner_their

bool SHAPE_LINE_CHAIN::INTERSECTION::is_corner_their

Auxiliary flag to avoid copying intersection info to intersection refining code, used by the refining code (e.g.

hull handling stuff in the P&S) to reject false intersection points.

◆ p

VECTOR2I SHAPE_LINE_CHAIN::INTERSECTION::p

< Point of intersection between our and their.

Index of the intersecting corner/segment in the 'our' (== this) line.


The documentation for this struct was generated from the following file: