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

Class Vec4



  • @ThingworxExtensionApiClass(since={7,1},
                                canInstantiate=true)
    public class Vec4
    extends Vec3
    BaseType used to represent a Vector of 4 decimal values modeled with x, y, z, and w.

    Default x value is 0.0.
    Default y value is 0.0.
    Default z value is 0.0.
    Default w value is 1.0.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String W 
      • Fields inherited from class com.thingworx.types.primitives.structs.Vec3

        Z
      • Fields inherited from class com.thingworx.types.primitives.structs.Vec2

        X, Y
    • Constructor Summary

      Constructors 
      Constructor and Description
      Vec4()


      Construct a Vec4 with default values.
      Vec4(double x, double y, double z, double w)


      Construct a Vec3 with the provided x, y and z values.
    • Method Summary

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


      Construct a Vec4 from the provided string value.
      double getW()


      Get the w value.
      boolean isDefaultValue()


      Check if this Vec4 instance is in its default state.
      void setW(double value)


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


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

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