svec3
- Last UpdatedSep 05, 2024
- 2 minute read
This topic is about the SVEC3 data type.
Value syntax
23.44 32.3 -13.2
Description
Used by properties that need three double values, such as 3D positions or colors.
Attributes
These are the attributes for SVEC3.
|
Attribute |
Type |
Description |
|---|---|---|
|
add(svec3 value) |
svec3 |
Returns the sum of the two vectors. Take care that a value and not a field name must be specified as argument. |
|
cross(svec3 value) |
svec3 |
Returns the cross product (SVEC3) of the two vectors. Take care that a value and not a field name must be specified as argument. |
|
distance(svec3 value) |
sfloat |
Calculates the distance from field and another SVEC3 coordinate. Take care that a value and not a field name must be specified as argument. |
|
dot(svec3 value) |
sdouble |
Returns the dot product (SFLOAT) of the two vectors. Take care that a value and not a field name must be specified as argument. |
|
isModified |
sbool |
Set to True in the frame where the value of this field is modified. |
|
length |
sdouble |
Returns the length of the SVEC3 vector. |
|
normalize() |
svec3 |
Returns the normalized vector value. |
|
scalardiv(sfloat value) |
svec3 |
Divides each SVEC3 coordinate for the divider value. Take care that a value and not a field name must be specified as argument. |
|
scalarmul(sfloat value) |
svec3 |
Multiplies each SVEC3 coordinate for the multiplier value. Take care that a value and not a field name must be specified as argument. |
|
sub(svec3 value) |
svec3 |
Returns the difference of the two vectors. Take care that a value and not a field name must be specified. as argument. |
|
toQuat(senum rotationOrder) |
squat |
Converts a rotation expressed in Euler angles into a quaternion (SQUAT). You must specify the Euler rotation axis order from the six possible orders: XYZ, XZY, YXZ, YZX, ZXY, ZYX. |
|
type |
sstring |
Returns the type name. |
|
x y z |
sdouble |
Use to obtain single values from the vector. |
|
yuptozup |
svec3 |
Used only as op inside a modify statement. Converts the SVEC3 value(position) from Y up coordinate system to Z up coordinate system. |
|
zuptoyup |
svec3 |
Used only as op inside a modify statement. Converts the SVEC3 value(position) from Z up coordinate system to Y up coordinate system. |