RPGNext
Take Your RPG Development to theNextLevel
Site Links
Home
RPG Programming
xRPG Downloads
xRPG Docs
About This Site
About Me

RPG Gurus
Bob Cozzi
Brad Stone
Scott Klement
Jon Paris

iSeries Links
Alpha Works
Midrange.com
FAQ@Midrange.com
MidrangeServer.com
IBM Docs
iSeries Infocenter
MCPress
Easy400
API Finder

xRPG Core Library Procedures - RNBMATH: getPolygonArea()


Calculate the Area of a Polygon.

Usage:

getPolygonArea( {savePoints} );

Name Type Options Opt/Req Description
savePoints N Const Opt Indicates whether or not to clear the Polygon Points after the operation.
  • *OFF (DEFAULT): Instructs the procedure to clear the polygon after calculating the area.
  • *ON: Saves the Polygon points in their current state.
On is the default as a defensive measure to protect against melding polygons together by forgetting to clear the polygon (see clearPolygonPoints()). The polygon should be cleared prior to the creation of any subsequent polygon.
Returns: 30, 9 n/a n/a The area of the polygon.

This site conforms with the following W3C specifications:

Web Essentials

Contact