public class Tile extends Object implements Serializable
This class is devoted to simple usage only. It assumes the edges are strictly between 0 and π radians and that the angles between edges are also strictly between 0 and π radians.
AlongTrackAiming
,
ConstantAzimuthAiming
,
Serialized FormConstructor and Description |
---|
Tile(GeodeticPoint v0,
GeodeticPoint v1,
GeodeticPoint v2,
GeodeticPoint v3)
Create a tile.
|
Modifier and Type | Method and Description |
---|---|
GeodeticPoint |
getCenter()
Get the center point.
|
GeodeticPoint |
getInterpolatedPoint(double u,
double v)
Get an interpolated point inside the tile.
|
GeodeticPoint[] |
getVertices()
Get the four vertices.
|
public Tile(GeodeticPoint v0, GeodeticPoint v1, GeodeticPoint v2, GeodeticPoint v3)
It is caller responsibility o ensure the vertices define a simple non-degenerated tile (i.e. edges are strictly between 0 than π radians and angles between edges are also strictly between 0 and π radians). No checks are performed here.
v0
- first vertexv1
- second vertexv2
- third vertexv3
- fourth vertexpublic GeodeticPoint[] getVertices()
public GeodeticPoint getInterpolatedPoint(double u, double v)
The interpolated point is based on bilinear interpolations along the body surface assumed to be spherical, and along the vertical axis.
The interpolation parameters are chosen such that (u = 0, v = 0) maps to vertex v0, (u = 1, v = 0) maps to vertex v1, (u = 1, v = 1) maps to vertex v2 and (u = 0, v = 1) maps to vertex v3.
u
- first interpolation parameter (should be between
0 and 1 to remain inside the tile)v
- second interpolation parameter (should be between
0 and 1 to remain inside the tile)public GeodeticPoint getCenter()
The center points corresponds to getInterpolatedPoint(0.5, 0.5)
Copyright © 2002-2022 CS GROUP. All rights reserved.