Quad#
Added in version 1.0.
- class Quad(*args, **kwargs)#
A 4 vertex quadrilateral, as represented by four Point.
The contents of a Quad are private and should never be
accessed directly.
Constructors#
Methods#
- class Quad
-
- contains(p: Point) bool#
Checks if the given
Quadcontains the givenPoint.Added in version 1.0.
- Parameters:
p – a
Point
- get_point(index_: int) Point#
Retrieves the point of a
Quadat the given index.Added in version 1.0.
- Parameters:
index – the index of the point to retrieve
- init(p1: Point, p2: Point, p3: Point, p4: Point) Quad#
Initializes a
Quadwith the given points.Added in version 1.0.
- Parameters:
p1 – the first point of the quadrilateral
p2 – the second point of the quadrilateral
p3 – the third point of the quadrilateral
p4 – the fourth point of the quadrilateral
Fields#
- class Quad
- points#