Point

Point is the most basic geometry in Computational Geometry. Point is the basic way of determining the location of any given geometry.

Computational Geometry Library in Python – Point:

class CGLibPy_Point(object):
    X = 0.0
    Y = 0.0
    Z = 0.0

    def __init__(self, xcoord,ycoord,zcoord):
        self.X = xcoord
        self.Y = ycoord
        self.Z = zcoord

Point is defined in 3D using distances from Origin along X,Y and Z axes. These are called coordinates of a point. A point is represented as (x,y,z) where x,y and z are distances of given point along X,Y and Z axes respectively.

Point in 3D space

Even though this is the representation of the point in 3D space, most of the algorithms are presented in 2D systems i.e. on XY, YZ or XZ planes.

Properties of a Point:

  1. Point has no shape and size
  2. Point has zero length
  3. Point is infinitesimal part of the space
  4. Distance of a point from origin is given as √( x+ y+ z)