public class Statistics extends Object
| Constructor and Description |
|---|
Statistics(List<Direction> directions,
org.sigtec.ink.Note note) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCorners()
Returns the number of corners
|
double |
getDiagonal()
Returns the number of diagonal elements
|
double |
getEast()
Returns the number of East directions
|
double |
getNorth()
Returns the number of north directions
|
double |
getNorthEast()
Returns the number of north/east directions
|
double |
getNorthWest()
Returns the number of north/west directions
|
double |
getProximity()
Returns the proportional distance between the first and last point
|
double |
getSouth()
Returns the number of south directions
|
double |
getSouthEast()
Returns the number of south/east directions
|
double |
getSouthWest()
Returns the number of south/west directions
|
double |
getStraight()
Returns the number of straight elements
|
int |
getTotalDirections()
Returns the number of direction elements
|
int |
getTraces()
Returns the number of traces
|
double |
getWest()
Returns the number of west directions
|
boolean |
isDiagonal(Direction direction)
Returns true if the direction is diagonal
|
boolean |
isStraight(Direction direction)
Returns true if the directions is straight
|
String |
toString() |
public int getTotalDirections()
public double getStraight()
public double getDiagonal()
public double getProximity()
public double getEast()
public double getWest()
public double getNorth()
public double getSouth()
public double getNorthWest()
public double getSouthWest()
public double getNorthEast()
public double getSouthEast()
public int getTraces()
public boolean isStraight(Direction direction)
direction - the directionpublic boolean isDiagonal(Direction direction)
direction - the directionpublic int getCorners()
Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.