Kinect Physics Tutorial for Processing
Class java.awt.Polygon
All Packages This Package Previous Next java.lang.Object | +----java.awt.Polygon public class Polygon extends Object A polygon consists of a list of x and y coordinates. Version: Author: Sami Shaio, Herb Jellinek npoints The total number of points. xpoints The array of x coordinates. ypoints The array of y coordinates. Creates an empty polygon. Constructs and initializes a Polygon from the specified parameters. Appends a point to a polygon. getBoundingBox() - what area does this polygon span? Is point (x, y) inside the polygon? npoints public int npoints xpoints public int xpoints[] ypoints public int ypoints[] Polygon public Polygon() public Polygon(int xpoints[], int ypoints[], int npoints) Parameters: xpoints - the array of x coordinates ypoints - the array of y coordinates npoints - the total number of points in the Polygon addPoint public void addPoint(int x, int y) Appends a point to a polygon. x - the x coordinate of the point y - the y coordinate of the point getBoundingBox public Rectangle getBoundingBox()
Andy Best | Interactive Media Art, Music and Electronics.
Metropolitan Works workshop: Facade tool
Metropolitan Works workshop: Facade tool As announced a few months ago, I recently taught two London based workshops and in the interest of learning, the source code of various examples done at both events is now available in the learn.postspectacular.com repository. Released under the same license as toxiclibs itself, LGPLv2.1. The most recent workshop took place at Metropolitan Works, the London Metropolitan University’s digital fabrication facility. Under the overarching theme of digital fabrication, initially this workshop was focused almost exclusively on geometry aspects and how to use various toxiclibs classes to construct shapes & forms and solve problems in this domain. Over the past couple of weeks I squeezed in some extra time to finish cleaning up and adding comments (lots of!) Facade designs generally require to take into account the varying light conditions & requirements of the space sections on the inside of the building. Result of using a more complex profile spline
Related:
Related: