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 76 of file pns_node.h.

Member Data Documentation

int PNS::OBSTACLE::m_distFirst

... and the distance thereof

Definition at line 92 of file pns_node.h.

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

int PNS::OBSTACLE::m_distLast

Definition at line 92 of file pns_node.h.

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

const ITEM* PNS::OBSTACLE::m_head

Item we search collisions with

Definition at line 79 of file pns_node.h.

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

SHAPE_LINE_CHAIN PNS::OBSTACLE::m_hull

Hull of the colliding m_item

Definition at line 85 of file pns_node.h.

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

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 89 of file pns_node.h.

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

VECTOR2I PNS::OBSTACLE::m_ipLast

Definition at line 89 of file pns_node.h.

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

ITEM* PNS::OBSTACLE::m_item

Item found to be colliding with m_head

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