Polygon Convexity: Another O(n) Test
Iosif Pinelis
Abstract
An n-gon is defined as a sequence ¶=(V0,...,Vn-1) of n points on the plane. An n-gon ¶is said to be convex if the boundary of the convex hull of the set V0,...,Vn-1 of the vertices of ¶coincides with the union of the edges [V0,V1],...,[Vn-1,V0]; if at that no three vertices of ¶are collinear then ¶is called strictly convex. We prove that an n-gon ¶with n3 is strictly convex if and only if a cyclic shift of the sequence (0,...,n-1)∈[0,2π)n of the angles between the x-axis and the vectors V1-V0,...,V0-Vn-1 is strictly monotone. A ``non-strict'' version of this result is also proved.
Create a lesson
Related papers
Numerical Simulation of Transdermal Insulin Delivery Using a Coated Microneedle in a 2D Skin Model
Milana Tesfamarian, Michael Heisig, Gabriel Wittum et al.
Multi-Stage NeRF for Efficient 3D Coronary Artery Reconstruction from Two Narrow-Angle Angiographic Projections
Deyu Meng, Mojtaba Lashgari, Yiying Wang et al.
Perfectly Guarding Straits: Exact Algorithms for Weak Visibility Polygons
Shouvik Mondal, Udvas Das, Sasanka Roy
Low-Dimensional Embeddings for Gaussian Kernels on Manifolds
Soumik Dutta, Kunal Dutta
Flip Graphs for Eight Points in Three Dimensions Are Connected
Marc Khoury
Computing the minimal perimeter polygon for digital objects in the triangular tiling
Petra Wiederhold