|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.util.ChartMapFunction
The ChartMapFunction
represents functions to convert
(x,y) position to R.A. and Decl. coordinates, and to convert R.A.
and Decl. to (x,y) position. It consists of the R.A. and Decl. of
the (0,0) position, the scale unit per 1 degree, and the position
angle of the up direction.
Field Summary | |
protected Coor |
center_coor
The R.A. |
protected double |
position_angle
The position angle of up direction. |
protected double |
scale_per_degree
The scale unit per 1 degree. |
Constructor Summary | |
ChartMapFunction(Coor initial_coor,
double initial_scale,
double initial_pa)
Constructs a ChartMapFunction with the specified
R.A. |
Method Summary | |
Coor |
getCenterCoor()
Gets the R.A. |
double |
getPositionAngle()
Gets the position angle of up direction. |
double |
getScaleUnitPerDegree()
Gets the scale unit per 1 degree. |
ChartMapFunction |
map(MapFunction map_function)
Maps the virtual chart of (x,y) positions represented by the R.A. |
Position |
mapCoordinatesToXY(Coordinates coor)
Maps the specified R.A. |
Coor |
mapXYToCoordinates(Position position)
Maps the specified (x,y) position to the R.A. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected Coor center_coor
protected double scale_per_degree
protected double position_angle
Constructor Detail |
public ChartMapFunction(Coor initial_coor, double initial_scale, double initial_pa)
ChartMapFunction
with the specified
R.A. and Decl. of the (0,0) position, the scale unit per 1
degree, and the position angle of up direction.initial_coor
- the initial R.A. and Decl. of (0,0)
position.initial_scale
- the initial scale unit per 1 degree.initial_pa
- the initial position angle of up direction.Method Detail |
public Coor getCenterCoor()
public double getScaleUnitPerDegree()
public double getPositionAngle()
public ChartMapFunction map(MapFunction map_function)
ChartMapFunction
, to a new virtual chart of (x,y)
positions by the specified MapFunction
, and
creates a new ChartMapFunction
which represents
the mapped chart.map_function
- the map function.public Position mapCoordinatesToXY(Coordinates coor)
coor
- the R.A. and Decl. to map.public Coor mapXYToCoordinates(Position position)
position
- the (x,y) position to map.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |