Interactive 2D Graph Slice Tool

In order to interactively demonstrate certain geometric concepts such as y-at-x, x-at-y, or parameter value at a particular point on a curve, it is necessary to quickly scan lines of constant-x or constant-y value on a…

Interactive 2D Graph Marker

I need a few tools on top of CompGeJS in order to create intuitive, interactive demos for planar curves and other graph features. The most commonly used tool will be an interactive, 2D graph marker, or…

CompGeoJS 2D Graph Axes and Grid

I’ve enjoyed an opportunity to enhane the graphing tools in GompGeoJS.  Having a good baseline graphing capability is very useful for many of the demos that are to come, especially parametric curves. The CompGeoJS GraphAxis class…

Architectural Sections in CompGeoJS

I want CompGeoJS to be useful to devs working on architectural applications, floor planning, and 2D layout, so I’ve added support for some simple drafting shapes, namely C-secitons, L-sections, and I-sections.  These are fundamentally simple polygonal…

CompGeoJS Star Shape

I just added a Star shape to the CompGeoJS library that can be defined by the usual bounding rectangle and two additional parameters. A Star shape is typically defined by a number of points that are…

CompGeoJS Regular N-Gon

Regular n-gons with greater than three sides (we already have a Triangle class in CompGeoJS) can be created using a bounding rectangle and a parameter indicating the number of sides.  The smaller rectangle dimension is used…

CompGeoJS Triangle Class

Well, I agree that a triangle does not sound very interesting, but it is an important geometric shape. A triangle in CompGeoJS may be created with a bounding rectangle and a small set of parameters. A…

CompGeoJS Arrow Shape

Now that an early version of the Polygon class is complete, I can turn my attention to commonly used polygonal shapes.  The CompGeoJS PolygonalShape class serves as a base for developing named shapes that are completely…