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.
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:
- Point has no shape and size
- Point has zero length
- Point is infinitesimal part of the space
- Distance of a point from origin is given as √( x2 + y2 + z2 )