ch.sahits.game.graphic.display.util
Class Polygon

java.lang.Object
  extended by ch.sahits.game.graphic.display.util.Polygon

final class Polygon
extends Object

A polynom is a figure consisting of n Edges. The last Point of the last edge is identical with the first point of the first edge.

Author:
Andi Hotz, (c) Sahits GmbH, 2011 Created on Feb 27, 2011

Field Summary
private  Edge[] edges
           
private  String name
           
 
Constructor Summary
Polygon(Edge[] edges)
           
Polygon(String name, Edge[] edges)
           
 
Method Summary
 Edge[] getEdges()
           
 String getName()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private String name

edges

private final Edge[] edges
Constructor Detail

Polygon

public Polygon(String name,
               Edge[] edges)

Polygon

public Polygon(Edge[] edges)
Method Detail

getEdges

public Edge[] getEdges()

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Sahits GmbH. All Rights Reserved.