@ThingworxExtensionApiClass(since={7,1}, canInstantiate=true) public final class Vec3Primitive extends java.lang.Object implements IPrimitiveType<Vec3Primitive,Vec3>, java.lang.Cloneable
Vec3
,
Serialized FormConstructor and Description |
---|
Vec3Primitive()
Construct a new Vec3Primitive with a new Vec3 containing default values. |
Vec3Primitive(java.lang.Double x,
java.lang.Double y,
java.lang.Double z)
Construct a new Vec3Primitive with the provided x, y, and z values. |
Vec3Primitive(Vec3 vec3)
Construct a new Vec3Primitive with a provided Vec3. |
Modifier and Type | Method and Description |
---|---|
Vec3Primitive |
clone()
Clone the current Vec3Primitive instance. |
int |
compare(Vec3Primitive v1,
Vec3Primitive v2) |
int |
compareTo(java.lang.Object value) |
static Vec3Primitive |
convertFromObject(java.lang.Object data)
Convert the incoming data Object to a Vec3Primitive from a String, Vec3, JSONObject, or HashMap. |
BaseTypes |
getBaseType()
Get the BaseType associated to this Vec3Primitive. |
java.lang.Object |
getSerializedValue()
Get a serialized String representation of this Vec3Primitive instance. |
java.lang.String |
getStringValue() |
Vec3 |
getValue()
Get this Vec3Primitive's instance value. |
void |
setValue(Vec3 value) |
java.lang.String |
toString() |
@ThingworxExtensionApiMethod(since={7,1}) public Vec3Primitive()
Vec3
@ThingworxExtensionApiMethod(since={7,1}) public Vec3Primitive(Vec3 vec3)
vec3
- - a Vec3 to be stored in a new Vec3Primitive@ThingworxExtensionApiMethod(since={7,1}) public Vec3Primitive(java.lang.Double x, java.lang.Double y, java.lang.Double z)
x
- - double value to be used for xy
- - double value to be used for yz
- - double value to be used for z@ThingworxExtensionApiMethod(since={7,1}) public BaseTypes getBaseType()
getBaseType
in interface IPrimitiveType<Vec3Primitive,Vec3>
@ThingworxExtensionApiMethod(since={7,1}) public java.lang.Object getSerializedValue()
getSerializedValue
in interface IPrimitiveType<Vec3Primitive,Vec3>
@ThingworxExtensionApiMethod(since={7,1}) public Vec3 getValue()
getValue
in interface IPrimitiveType<Vec3Primitive,Vec3>
@ThingworxExtensionApiMethod(since={7,1}) public int compareTo(java.lang.Object value)
compareTo
in interface java.lang.Comparable
@ThingworxExtensionApiMethod(since={7,1}) public int compare(Vec3Primitive v1, Vec3Primitive v2)
compare
in interface java.util.Comparator<Vec3Primitive>
@ThingworxExtensionApiMethod(since={7,1}) public java.lang.String toString()
toString
in class java.lang.Object
@ThingworxExtensionApiMethod(since={7,1}) public Vec3Primitive clone()
clone
in interface IPrimitiveType<Vec3Primitive,Vec3>
clone
in class java.lang.Object
@ThingworxExtensionApiMethod(since={7,1}) public static Vec3Primitive convertFromObject(java.lang.Object data) throws java.lang.Exception
data
- -Incoming object to be converted to a Vec3Primitivejava.lang.Exception
- if an error occurs@ThingworxExtensionApiMethod(since={7,1}) public java.lang.String getStringValue()
getStringValue
in interface IPrimitiveType<Vec3Primitive,Vec3>
@ThingworxExtensionApiMethod(since={7,1}) public void setValue(Vec3 value)
setValue
in interface IPrimitiveType<Vec3Primitive,Vec3>