Class NTxPoint2D

java.lang.Object
net.thevpc.ntexup.api.document.elem2d.NTxPoint2D
All Implemented Interfaces:
net.thevpc.nuts.elem.NToElement

public class NTxPoint2D extends Object implements net.thevpc.nuts.elem.NToElement
  • Field Details

    • x

      public double x
    • y

      public double y
  • Constructor Details

    • NTxPoint2D

      public NTxPoint2D(double x, double y)
  • Method Details

    • getX

      public double getX()
    • getY

      public double getY()
    • asVector

      public NTxVector2D asVector()
    • minus

      public NTxPoint2D minus(NTxPoint2D b)
    • length

      public double length()
    • plus

      public NTxPoint2D plus(NTxPoint2D b)
    • plus

      public NTxPoint2D plus(double b)
    • minus

      public NTxPoint2D minus(double b)
    • mul

      public NTxPoint2D mul(double b)
    • dot

      public double dot(NTxPoint2D b)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object
    • toElement

      public net.thevpc.nuts.elem.NElement toElement()
      Specified by:
      toElement in interface net.thevpc.nuts.elem.NToElement
    • add

      public NTxPoint2D add(double x, double y)