UConn Computational Geometry

View My GitHub Profile

Compugeom.GitHub.io by compugeom

CG_Vertex

Description

A drawable point.

Constructor

CG_Vertex(Number x, Number y)

Attributes

Number x x coordinate of the vertex.
Number y y coordinate of the vertex.
CG_Halfedge h The associated CG_Halfedge.

Functions

CG_HalfEdge handle(CG_Vertex v) Creates and returns an associated CG_HalfEdge between this vertex and vertex v.
Boolean isIsolated() Checks if there is a HalfEdge associated with this vertex.
Boolean isLeaf() Checks if this vertex is an endpoint.
Boolean ccw(CG_Vertex a, CG_Vertex b) Checks if this vertex is below the line spanned by vertices a and b.
Boolean visible(CG_HalfEdge, Boolean orient) Checks if this vertex is within the plane spanned by the half edges h.prev and h with orientation orient.
CG_HalfEdge inFace(CG_HalfEdge, Boolean orient) Checks if this vertex is in the face spanned by the half edge h with orientation orient. If so, it returns the half edge h.
Otherwise, it returns the first half edge c such that visible(c, orient) = false.