public GetVertex ( int index, double &x, double &y ) : VertexCmd | ||
index | int | |
x | double | |
y | double | |
return | VertexCmd |
public VertexCmd GetVertex(int index, out double x, out double y)
{
int i = index << 1;
x = m_coord_xy[i];
y = m_coord_xy[i + 1];
return (VertexCmd)m_cmds[index];
}
public void GetVertexXY(int index, out double x, out double y)
public static VertexStore TransformToVxs(this Bilinear bilinearTx, VertexStore src, VertexStore vxs) { int count = src.Count; VertexCmd cmd; double x, y; for (int i = 0; i < count; ++i) { cmd = src.GetVertex(i, out x, out y); bilinearTx.Transform(ref x, ref y); vxs.AddVertex(x, y, cmd); } return(vxs); }