Skip navigation links
Thingworx Platform API

Class Vec3

  • Direct Known Subclasses:

    public class Vec3
    extends Vec2
    BaseType used to represent a Vector of 3 decimal values modeled with x, y, and z.

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

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

        X, Y
    • Constructor Summary

      Constructor and Description

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

      Construct a Vec3 with the provided x, y and z values.
      Vec3(Vec2 vec2, double z)

      Construct a Vec3 with the provided Vec2 and z values.
    • Method Summary

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

      Construct a Vec3 from the provided string value.
      double getZ()

      Get the z value.
      boolean isDefaultValue()

      Check if this Vec3 instance is in its default state.
      void setZ(double value)

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

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

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