KiCad PCB EDA Suite
PNS::OBSTACLE Struct Reference

Hold an object colliding with another object, along with some useful data about the collision. 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 intersection between m_head and m_hull. More...
 
int m_distFirst
 ... and the distance thereof More...
 

Detailed Description

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

Definition at line 104 of file pns_node.h.

Member Data Documentation

◆ m_distFirst

int PNS::OBSTACLE::m_distFirst

... and the distance thereof

Definition at line 111 of file pns_node.h.

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

◆ m_head

const ITEM* PNS::OBSTACLE::m_head

Item we search collisions with.

Definition at line 106 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 109 of file pns_node.h.

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

◆ m_ipFirst

VECTOR2I PNS::OBSTACLE::m_ipFirst

First intersection between m_head and m_hull.

Definition at line 110 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 108 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: