KiCad PCB EDA Suite
POINT_COORD Class Reference

A coordinate point. More...

#include <ds_data_item.h>

Public Member Functions

 POINT_COORD ()
 
 POINT_COORD (const VECTOR2D &aPos, enum CORNER_ANCHOR aAnchor=RB_CORNER)
 

Public Attributes

VECTOR2D m_Pos
 
int m_Anchor
 

Detailed Description

A coordinate point.

The position is always relative to the corner anchor.

Note
The coordinate is from the anchor point to the opposite corner.

Definition at line 69 of file ds_data_item.h.

Constructor & Destructor Documentation

◆ POINT_COORD() [1/2]

POINT_COORD::POINT_COORD ( )
inline

Definition at line 72 of file ds_data_item.h.

@ RB_CORNER
Definition: ds_data_item.h:49

References m_Anchor, and RB_CORNER.

◆ POINT_COORD() [2/2]

POINT_COORD::POINT_COORD ( const VECTOR2D aPos,
enum CORNER_ANCHOR  aAnchor = RB_CORNER 
)
inline

Definition at line 74 of file ds_data_item.h.

75 {
76 m_Pos = aPos;
77 m_Anchor = aAnchor;
78 }
VECTOR2D m_Pos
Definition: ds_data_item.h:80

References m_Anchor, and m_Pos.

Member Data Documentation

◆ m_Anchor

◆ m_Pos


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