internal PlanktonVertex(float x, float y, float z, PlanktonVertexData data) { OutgoingHalfedge = -1; this.X = x; this.Y = y; this.Z = z; this.data = data; }
/// <summary> /// Adds a new vertex to the end of the Vertex list. /// </summary> /// <param name="data">Vertex data to accompany the vertex.</param> public int Add(Vector3 vector, PlanktonVertexData data) { return(this.Add(new PlanktonVertex(vector.x, vector.y, vector.z, data))); }
/// <summary> /// Adds a new vertex to the end of the Vertex list. /// </summary> /// <param name="x">X component of new vertex coordinate.</param> /// <param name="y">Y component of new vertex coordinate.</param> /// <param name="z">Z component of new vertex coordinate.</param> /// <param name="data">Vertex data to accompany the vertex.</param> /// <returns>The index of the newly added vertex.</returns> public int Add(float x, float y, float z, PlanktonVertexData data) { return(this.Add(new PlanktonVertex(x, y, z, data))); }