|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.util.PositionMap | +--net.aerith.misao.util.TriangleMatchingSolver.TriangleMap
The TriangleMap
represents a map of triangles
based on the ratio of edges.
Field Summary | |
protected double |
unit_ratio
The unit of ratio, which must be greater than 1.0. |
Fields inherited from class net.aerith.misao.util.PositionMap |
accept_out_of_bounds,
bottom_right,
list,
table,
table_columns,
table_rows,
top_left |
Constructor Summary | |
TriangleMatchingSolver.TriangleMap(Triangle[] triangles,
int division_count,
double unit_ratio)
Constructs a TriangleMap with a list of
Triangle s, the number to divide this map and
the unit of ratio, and divides this map into some parts for
fast search. |
Method Summary | |
protected Position |
convertPosition(Position position)
Converts the (x,y) position into the proper system for this map. |
Methods inherited from class net.aerith.misao.util.PositionMap |
acceptOutOfBounds,
addPosition,
addPosition,
divide,
divideByCircleCoverage,
divideByUnit,
exceptOutOfBounds,
getAllPositions,
getArea,
getBottomLeftCorner,
getBottomRightCorner,
getCenter,
getDividedPositionMapList,
getHeight,
getPartialList,
getPartialListWithinRadius,
getPartialListWithinSteps,
getTopLeftCorner,
getTopRightCorner,
getWidth,
isOutOfBounds,
paramString,
removePosition,
toString |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected double unit_ratio
Constructor Detail |
public TriangleMatchingSolver.TriangleMap(Triangle[] triangles, int division_count, double unit_ratio) throws java.lang.IllegalArgumentException
TriangleMap
with a list of
Triangle
s, the number to divide this map and
the unit of ratio, and divides this map into some parts for
fast search.
This map is divided into division_count x division_count parts. The unit of ratio must be greater than 1.0.
triangles
- the list of triangles.division_count
- the number to divide this map.unit_ratio
- the unit of ratio to divide.Method Detail |
protected Position convertPosition(Position position)
position
- the original (x,y).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |