Processing math: 100%

sknano.core.geometric_regions.Square.contains

Square.contains(point)[source][source]

Test region membership of point in Square.

Parameters:

point : array_like

Returns:

bool

True if point is within Square, False otherwise.

Notes

A point (px,py) is within the bounded region of a square with center (cx,cy) and side length a if the following is true:

cia2pici+a2i{x,y}