Esempio n. 1
0
 /// <summary>
 /// Gets the points adjacent to a given point.
 /// </summary>
 /// <param name="coordinate">Point in the graph</param>
 /// <returns>The coordinate of that point.</returns>
 public IEnumerable <SCoord> GetNeighbors(SCoord coordinate) => vertices.GetConnected(coordinate);
Esempio n. 2
0
 /// <summary>
 /// Gets the euclidian coordinate of a point around the center of this icosphere.
 /// </summary>
 /// <param name="coordinate">Coordinate in lattitude and lnogitude relative to the spehre</param>
 /// <returns>The point at that lattitude and longitude the radius of the icosphere
 /// away from the center of the icosphere.</returns>
 public Vector3 GetPoint(SCoord coordinate) => coordinate.ToEuclidian() * radius + center;