All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ctreber.acearth.util.Polygon Maven / Gradle / Ivy

Go to download

PlantUML is a component that allows to quickly write : * sequence diagram, * use case diagram, * class diagram, * activity diagram, * component diagram, * state diagram * object diagram

The newest version!
package com.ctreber.acearth.util;


/**
 * 

A polygon in a 3 axis space. * *

© 2002 Christian Treber, [email protected] * @author Christian Treber, [email protected] * */ public class Polygon { public static final int LAND = 1; public static final int WATER = -1; private int fType; private Point3D[] fPoints; public Polygon(int pType, Point3D[] pPoints) { fType = pType; fPoints = pPoints; } public int getType() { return fType; } public Point3D[] getPoints() { return fPoints; } public Point3D getPoint(int pIndex) { return fPoints[pIndex]; } public int getSize() { return fPoints.length; } public String toString() { return "Type " + fType + ", " + fPoints.length + " points"; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy