UnityMol  0.9.6-875
UnityMol viewer / In developement
EdgeArray.cs
Go to the documentation of this file.
1 using UnityEngine;
2 using System.Collections;
3 
4 public class EdgeArray {
5 
6  private int[] edgeOccupationArray;
7 
8  public EdgeArray() {
9  edgeOccupationArray = new int[12] {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
10  }
11 
12  public int GetEdge(int index) {
13  return edgeOccupationArray[index];
14  }
15 
16  public void SetEdge(int index, int vertexIndex) {
17  edgeOccupationArray[index] = vertexIndex;
18  }
19 
20 }
int GetEdge(int index)
Definition: EdgeArray.cs:12
EdgeArray()
Definition: EdgeArray.cs:8
void SetEdge(int index, int vertexIndex)
Definition: EdgeArray.cs:16
int[] edgeOccupationArray
Definition: EdgeArray.cs:6