KiCad PCB EDA Suite
PNS::OBSTACLE Struct Reference

Struct OBSTACLE. More...

#include <pns_node.h>

Public Attributes

const ITEMm_head
 

Item we search collisions with

More...
 
ITEMm_item
 

Item found to be colliding with m_head

More...
 
SHAPE_LINE_CHAIN m_hull
 

Hull of the colliding m_item

More...
 
VECTOR2I m_ipFirst
 

First and last intersection point between the head item and the hull of the colliding m_item

More...
 
VECTOR2I m_ipLast
 
int m_distFirst
 

... and the distance thereof

More...
 
int m_distLast
 

Detailed Description

Struct OBSTACLE.

Holds an object colliding with another object, along with some useful data about the collision.

Definition at line 80 of file pns_node.h.

Member Data Documentation

◆ m_distFirst

int PNS::OBSTACLE::m_distFirst

... and the distance thereof

Definition at line 96 of file pns_node.h.

Referenced by PNS::NODE::NearestObstacle().

◆ m_distLast

int PNS::OBSTACLE::m_distLast

Definition at line 96 of file pns_node.h.

Referenced by PNS::NODE::NearestObstacle().

◆ m_head

const ITEM* PNS::OBSTACLE::m_head

Item we search collisions with

Definition at line 83 of file pns_node.h.

Referenced by PNS::NODE::DEFAULT_OBSTACLE_VISITOR::operator()().

◆ m_hull

SHAPE_LINE_CHAIN PNS::OBSTACLE::m_hull

Hull of the colliding m_item

Definition at line 89 of file pns_node.h.

Referenced by PNS::NODE::NearestObstacle().

◆ m_ipFirst

VECTOR2I PNS::OBSTACLE::m_ipFirst

First and last intersection point between the head item and the hull of the colliding m_item

Definition at line 93 of file pns_node.h.

Referenced by PNS::NODE::NearestObstacle().

◆ m_ipLast

VECTOR2I PNS::OBSTACLE::m_ipLast

Definition at line 93 of file pns_node.h.

Referenced by PNS::NODE::NearestObstacle().

◆ m_item

ITEM* PNS::OBSTACLE::m_item

Item found to be colliding with m_head

Definition at line 86 of file pns_node.h.

Referenced by PNS::NODE::NearestObstacle(), and PNS::NODE::DEFAULT_OBSTACLE_VISITOR::operator()().


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