Klasse Envelope

java.lang.Object
org.opentcs.data.model.Envelope
Alle implementierten Schnittstellen:
Serializable

public class Envelope extends Object implements Serializable
A sequence of vertices that, when connected in their defined order, represent the area that may be occupied by an object.

Since an envelope represents a closed geometry, it is expected that the last vertex matches the first one.

Note that an envelope with less than four vertices is not reasonable, since it cannot span a two-dimensional plane. Such envelopes are therefore considered empty.

Siehe auch:
  • Konstruktordetails

    • Envelope

      public Envelope(@Nonnull List<Couple> vertices)
      Creates a new instance.
      Parameter:
      vertices - The sequence of vertices the envelope consists of.
      Löst aus:
      IllegalArgumentException - If the sequence of vertices is empty or if the last vertext in the sequence does not match the first one.
  • Methodendetails

    • getVertices

      public List<Couple> getVertices()
      Returns the sequence of vertices the envelope consists of.
      Gibt zurück:
      The sequence of vertices the envelope consists of.
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • equals

      public boolean equals(Object obj)
      Setzt außer Kraft:
      equals in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object