• java.lang.Object
    • com.thingworx.types.primitives.structs.Vec2
  • Direct Known Subclasses:
    Vec3

    @ThingworxExtensionApiClass(since={7,1},
                                canInstantiate=true)
    public class Vec2
    extends java.lang.Object
    BaseType used to represent a Vector of 2 decimal values modeled with x and y.

    Default x value is 0.0.
    Default y value is 0.0.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String X  
      static java.lang.String Y  
    • Constructor Summary

      Constructors 
      Constructor Description
      Vec2()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int compare​(Vec2 v1, Vec2 v2)  
      int compareTo​(java.lang.Object value)  
      static Vec2 fromString​(java.lang.String value)


      Construct a Vec2 from the provided string value.
      double getX()


      Get the x value.
      double getY()


      Get the y value.
      boolean isDefaultValue()


      Check if this Vec2 instance is in its default state.
      void setX​(double value)


      Set the x value.
      void setY​(double value)


      Set the y value.
      java.lang.String toString()


      Construct a string representation of this Vec2 instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait