public void Focus(int nodeIndex, GreatCircleCamera camera) { referenceNodeIndex = nodeIndex; if (!AnchorToNodes) { var graph = GetGraph(); camera.CenterOfOrbit = ((SpatialNode)graph.Nodes[nodeIndex]).Position; } }
public void Focus(int nodeIndex, GreatCircleCamera camera) { referenceNodeIndex = nodeIndex; if (!AnchorToNodes) { var graph = GetGraph(); camera.CenterOfOrbit = ((SpatialNode)graph.Nodes[nodeIndex]).Position; } }