Class Edge

java.lang.Object
eu.iv4xr.framework.spatial.meshes.Edge
All Implemented Interfaces:
Iterable<Integer>

public class Edge extends Object implements Iterable<Integer>
This class contains two indices in the form of primitive integers that describe an edge. edge.get(0) gives the edge's end-point with the smaller index, and edge.get(1) gives the end-point with the larger index.
Author:
Naraenda
  • Field Details

    • i

      public int i
    • j

      public int j
  • Constructor Details

    • Edge

      public Edge(int v0, int v1)
  • Method Details

    • iterator

      public Iterator<Integer> iterator()
      Specified by:
      iterator in interface Iterable<Integer>
    • center

      public Vec3 center(List<Vec3> vertices)
      Given a list that maps vertex-indices to their real positions, this method calculate the center/middle point of this edge.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object