Loading [MathJax]/jax/output/HTML-CSS/jax.js

sknano.core.geometric_regions.Parallelogram.contains

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

Test region membership of point in Parallelogram.

Parameters:

point : array_like

Returns:

bool

True if point is within Paralleogram, False otherwise

Notes

A point (px,py) is within the bounded region of a parallelogram with origin (ox,oy) and direction vectors u=(ux,uy) and v=(vx,vy) if the following is true:

0(pyoy)vx+(oxpx)vyuyvxuxvy10(pyoy)ux+(oxpx)uyuxvyuyvx1