Class S2Point.Builder

java.lang.Object
com.google.common.geometry.S2Point.Builder
Enclosing class:
S2Point

public static final class S2Point.Builder extends Object
A builder of S2Point instances.
  • Field Details

    • x

      private double x
    • y

      private double y
    • z

      private double z
  • Constructor Details

    • Builder

      public Builder()
      Constructs a new builder initialized to S2Point.ORIGIN.
  • Method Details

    • add

      @CanIgnoreReturnValue public S2Point.Builder add(S2Point point)
      Adds point.
    • build

      public S2Point build()
      Returns a new S2Point copied from the current state of this builder.