@@ -0,0 +1,1013 @@
+package com.io7m.jsycamore;%0A%0Aimport javax.annotation.Nonnull;%0Aimport javax.annotation.concurrent.Immutable;%0A%0Aimport com.io7m.jtensors.VectorI2I;%0Aimport com.io7m.jtensors.VectorReadable2I;%0A%0A/**%0A * Simple type representing an arbitrary 2D triangle.%0A */%0A%0A@Immutable public final class Triangle%0A%7B%0A  private final @Nonnull VectorReadable2I point0;%0A  private final @Nonnull VectorReadable2I point1;%0A  private final @Nonnull VectorReadable2I point2;%0A%0A  public Triangle(%0A    final @Nonnull VectorReadable2I point0,%0A    final @Nonnull VectorReadable2I point1,%0A    final @Nonnull VectorReadable2I point2)%0A  %7B%0A    this.point0 = new VectorI2I(point0.getXI(), point0.getYI());%0A    this.point1 = new VectorI2I(point1.getXI(), point1.getYI());%0A    this.point2 = new VectorI2I(point2.getXI(), point2.getYI());%0A  %7D%0A%0A  public VectorReadable2I getPoint0()%0A  %7B%0A    return this.point0;%0A  %7D%0A%0A  public VectorReadable2I getPoint1()%0A  %7B%0A    return this.point1;%0A  %7D%0A%0A  public VectorReadable2I getPoint2()%0A  %7B%0A    return this.point2;%0A  %7D%0A%7D%0A

Add comment