Class Vec3

java.lang.Object
gaiasky.util.noise.Vec3

public class Vec3 extends Object
Simple 3D vector class mirroring GLSL's vec3.
  • Field Details

    • x

      public final double x
    • y

      public final double y
    • z

      public final double z
  • Constructor Details

    • Vec3

      public Vec3(double x, double y, double z)
  • Method Details

    • add

      public Vec3 add(Vec3 other)
    • sub

      public Vec3 sub(Vec3 other)
    • mul

      public Vec3 mul(double scalar)
    • dot

      public double dot(Vec3 other)
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object