KiCad Pcbnew Python Scripting
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Properties | List of all members
pcbnew.VECTOR2I Class Reference
Inheritance diagram for pcbnew.VECTOR2I:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, *args)
 
def EuclideanNorm (self)
 
def SquaredEuclideanNorm (self)
 
def Perpendicular (self)
 
def Resize (self, aNewLength)
 
def Format (self)
 
def Cross (self, aVector)
 
def Dot (self, aVector)
 
def Distance (self, aVector)
 
def SquaredDistance (self, aVector)
 
def __imul__ (self, *args)
 
def __iadd__ (self, *args)
 
def __isub__ (self, *args)
 
def __neg__ (self)
 
def __truediv__ (self, *args)
 
def __eq__ (self, aVector)
 
def __ne__ (self, aVector)
 
def __lt__ (self, aVector)
 
def __le__ (self, aVector)
 
def __gt__ (self, aVector)
 
def __ge__ (self, aVector)
 
def Set (self, x, y)
 
def Get (self)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def __str__ (self)
 
def __repr__ (self)
 
def __len__ (self)
 
def __getitem__ (self, index)
 
def __setitem__ (self, index, val)
 
def __nonzero__ (self)
 
def __add__ (self, other)
 
def __sub__ (self, other)
 

Public Attributes

 x
 
 y
 

Properties

property thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
property x = property(_pcbnew.VECTOR2I_x_get, _pcbnew.VECTOR2I_x_set, doc=)
 
property y = property(_pcbnew.VECTOR2I_y_get, _pcbnew.VECTOR2I_y_set, doc=)
 

Detailed Description

Proxy of C++ VECTOR2< int > class.

Definition at line 4663 of file pcbnew.py.

Constructor & Destructor Documentation

◆ __init__()

def pcbnew.VECTOR2I.__init__ (   self,
args 
)
    __init__(VECTOR2I self) -> VECTOR2I
    __init__(VECTOR2I self, int x, int y) -> VECTOR2I
    __init__(VECTOR2I self, VECTOR2I aVec) -> VECTOR2I

Definition at line 4671 of file pcbnew.py.

Here is the caller graph for this function:

Member Function Documentation

◆ __add__()

def pcbnew.VECTOR2I.__add__ (   self,
  other 
)

Definition at line 4792 of file pcbnew.py.

◆ __eq__() [1/2]

def pcbnew.VECTOR2I.__eq__ (   self,
  aVector 
)
__eq__(VECTOR2I self, VECTOR2I aVector) -> bool

Definition at line 4746 of file pcbnew.py.

◆ __eq__() [2/2]

def pcbnew.VECTOR2I.__eq__ (   self,
  other 
)

Definition at line 4778 of file pcbnew.py.

◆ __ge__()

def pcbnew.VECTOR2I.__ge__ (   self,
  aVector 
)
__ge__(VECTOR2I self, VECTOR2I aVector) -> bool

Definition at line 4766 of file pcbnew.py.

◆ __getitem__()

def pcbnew.VECTOR2I.__getitem__ (   self,
  index 
)

Definition at line 4783 of file pcbnew.py.

◆ __gt__()

def pcbnew.VECTOR2I.__gt__ (   self,
  aVector 
)
__gt__(VECTOR2I self, VECTOR2I aVector) -> bool

Definition at line 4762 of file pcbnew.py.

◆ __iadd__()

def pcbnew.VECTOR2I.__iadd__ (   self,
args 
)
    __iadd__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
    __iadd__(VECTOR2I self, int const & aScalar) -> VECTOR2I

Definition at line 4722 of file pcbnew.py.

Here is the caller graph for this function:

◆ __imul__()

def pcbnew.VECTOR2I.__imul__ (   self,
args 
)
    __imul__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
    __imul__(VECTOR2I self, int const & aScalar) -> VECTOR2I

Definition at line 4715 of file pcbnew.py.

Here is the caller graph for this function:

◆ __isub__()

def pcbnew.VECTOR2I.__isub__ (   self,
args 
)
    __isub__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
    __isub__(VECTOR2I self, int const & aScalar) -> VECTOR2I

Definition at line 4729 of file pcbnew.py.

Here is the caller graph for this function:

◆ __le__()

def pcbnew.VECTOR2I.__le__ (   self,
  aVector 
)
__le__(VECTOR2I self, VECTOR2I aVector) -> bool

Definition at line 4758 of file pcbnew.py.

◆ __len__()

def pcbnew.VECTOR2I.__len__ (   self)

Definition at line 4782 of file pcbnew.py.

◆ __lt__()

def pcbnew.VECTOR2I.__lt__ (   self,
  aVector 
)
__lt__(VECTOR2I self, VECTOR2I aVector) -> bool

Definition at line 4754 of file pcbnew.py.

◆ __ne__() [1/2]

def pcbnew.VECTOR2I.__ne__ (   self,
  aVector 
)
__ne__(VECTOR2I self, VECTOR2I aVector) -> bool

Definition at line 4750 of file pcbnew.py.

◆ __ne__() [2/2]

def pcbnew.VECTOR2I.__ne__ (   self,
  other 
)

Definition at line 4779 of file pcbnew.py.

◆ __neg__()

def pcbnew.VECTOR2I.__neg__ (   self)
__neg__(VECTOR2I self) -> VECTOR2I

Definition at line 4736 of file pcbnew.py.

◆ __nonzero__()

def pcbnew.VECTOR2I.__nonzero__ (   self)

Definition at line 4791 of file pcbnew.py.

◆ __repr__()

def pcbnew.VECTOR2I.__repr__ (   self)

Definition at line 4781 of file pcbnew.py.

◆ __setitem__()

def pcbnew.VECTOR2I.__setitem__ (   self,
  index,
  val 
)

Definition at line 4784 of file pcbnew.py.

◆ __str__()

def pcbnew.VECTOR2I.__str__ (   self)

Definition at line 4780 of file pcbnew.py.

Here is the caller graph for this function:

◆ __sub__()

def pcbnew.VECTOR2I.__sub__ (   self,
  other 
)

Definition at line 4793 of file pcbnew.py.

◆ __truediv__()

def pcbnew.VECTOR2I.__truediv__ (   self,
args 
)

Definition at line 4740 of file pcbnew.py.

◆ Cross()

def pcbnew.VECTOR2I.Cross (   self,
  aVector 
)
Cross(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type

Definition at line 4699 of file pcbnew.py.

◆ Distance()

def pcbnew.VECTOR2I.Distance (   self,
  aVector 
)
Distance(VECTOR2I self, VECTOR2L aVector) -> double

Definition at line 4707 of file pcbnew.py.

◆ Dot()

def pcbnew.VECTOR2I.Dot (   self,
  aVector 
)
Dot(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type

Definition at line 4703 of file pcbnew.py.

◆ EuclideanNorm()

def pcbnew.VECTOR2I.EuclideanNorm (   self)
EuclideanNorm(VECTOR2I self) -> int

Definition at line 4679 of file pcbnew.py.

◆ Format()

def pcbnew.VECTOR2I.Format (   self)
Format(VECTOR2I self) -> string

Definition at line 4695 of file pcbnew.py.

◆ Get()

def pcbnew.VECTOR2I.Get (   self)
Get(VECTOR2I self) -> PyObject *

Definition at line 4774 of file pcbnew.py.

Here is the caller graph for this function:

◆ Perpendicular()

def pcbnew.VECTOR2I.Perpendicular (   self)
Perpendicular(VECTOR2I self) -> VECTOR2I

Definition at line 4687 of file pcbnew.py.

◆ Resize()

def pcbnew.VECTOR2I.Resize (   self,
  aNewLength 
)
Resize(VECTOR2I self, int aNewLength) -> VECTOR2I

Definition at line 4691 of file pcbnew.py.

◆ Set()

def pcbnew.VECTOR2I.Set (   self,
  x,
  y 
)
Set(VECTOR2I self, long x, long y)

Definition at line 4770 of file pcbnew.py.

◆ SquaredDistance()

def pcbnew.VECTOR2I.SquaredDistance (   self,
  aVector 
)
SquaredDistance(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type

Definition at line 4711 of file pcbnew.py.

◆ SquaredEuclideanNorm()

def pcbnew.VECTOR2I.SquaredEuclideanNorm (   self)
SquaredEuclideanNorm(VECTOR2I self) -> VECTOR2< int >::extended_type

Definition at line 4683 of file pcbnew.py.

Member Data Documentation

◆ x

pcbnew.VECTOR2I.x

Definition at line 4778 of file pcbnew.py.

◆ y

pcbnew.VECTOR2I.y

Definition at line 4778 of file pcbnew.py.

Property Documentation

◆ thisown

property pcbnew.VECTOR2I.thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static

Definition at line 4666 of file pcbnew.py.

◆ x

property pcbnew.VECTOR2I.x = property(_pcbnew.VECTOR2I_x_get, _pcbnew.VECTOR2I_x_set, doc=)
static

Definition at line 4668 of file pcbnew.py.

◆ y

property pcbnew.VECTOR2I.y = property(_pcbnew.VECTOR2I_y_get, _pcbnew.VECTOR2I_y_set, doc=)
static

Definition at line 4669 of file pcbnew.py.


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