@ThingworxExtensionApiClass(since={7,1}, canInstantiate=true) public class Vec4 extends Vec3
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
W |
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. |
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. |
public static final java.lang.String W
@ThingworxExtensionApiMethod(since={7,1}) public Vec4(double x, double y, double z, double w)
x
- - double value to be used for xy
- - double value to be used for yz
- - double value to be used for zw
- - double value to be used for w@ThingworxExtensionApiMethod(since={7,1}) public Vec4()
@ThingworxExtensionApiMethod(since={7,1}) public double getW()
@ThingworxExtensionApiMethod(since={7,1}) public void setW(double value)
value
- - double value to be set for w@ThingworxExtensionApiMethod(since={7,1}) public int compareTo(java.lang.Object value)
@ThingworxExtensionApiMethod(since={7,1}) protected int compare(Vec4 v1, Vec4 v2)
@ThingworxExtensionApiMethod(since={7,1}) public java.lang.String toString()
@ThingworxExtensionApiMethod(since={7,1}) public boolean isDefaultValue()
isDefaultValue
in class Vec3
@ThingworxExtensionApiMethod(since={7,1}) public static Vec4 fromString(java.lang.String value)
value
- - String to split by ',' then taking the first result as value for x, the second result as value for y, the third result
as value for z, and the fourth result as value for w