PT_PointInt

PT_PointInt — converts a point to an integer.

Syntax

#include <cogent.h>

long PT_PointInt(PT_pCPOINT point);

Arguments

point
A point whose value should be returned.

Returns

An integer representation of the point. value

Description

This function attempts to find the most reasonable integer representation for the given point. This will depend on the input type of the point:

  • PT_TYPE_INTEGER - the point value
  • PT_TYPE_REAL - the floor of the point value
  • PT_TYPE_STRING - atol() of the point value

See Also

Point Structure, Storage, and Manipulation, PT_PointString, PT_PointReal, PT_PointFormat