Skip navigation links
Thingworx Platform API
8.5.0
com.thingworx.types.primitives

Class Vec2Primitive

  • java.lang.Object
    • com.thingworx.types.primitives.Vec2Primitive
    • Constructor Summary

      Constructors 
      Constructor and Description
      Vec2Primitive()


      Construct a new Vec2Primitive with a new Vec2 containing default values.
      Vec2Primitive(double x, double y)


      Construct a new Vec2Primitive with the provided x and y values.
      Vec2Primitive(Vec2 vec2)


      Construct a new Vec2Primitive with a provided Vec2.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Vec2Primitive clone()


      Clone the current Vec2Primitive instance.
      int compare(Vec2Primitive v1, Vec2Primitive v2) 
      int compareTo(java.lang.Object value) 
      static Vec2Primitive convertFromObject(java.lang.Object data)


      Convert the incoming data Object to a Vec2Primitive from a String, Vec2, JSONObject, or HashMap.
      BaseTypes getBaseType()


      Get the BaseType associated to this Vec2Primitive.
      java.lang.Object getSerializedValue()


      Get a serialized String representation of this Vec2Primitive instance.
      java.lang.String getStringValue() 
      Vec2 getValue()


      Get this Vec2Primitive's instance value.
      void setValue(Vec2 value) 
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong