Tizen Native API
6.5
|
The constraint function that updates the target property with the value of the first source multiplied by scale parameter (for Vector3 properties). More...
Public Member Functions | |
RelativeToConstraint (float scale) | |
Constructor. | |
RelativeToConstraint (const Vector3 &scale) | |
Constructor. | |
void | operator() (Vector3 ¤t, const PropertyInputContainer &inputs) |
Functor. | |
Public Attributes | |
Vector3 | mScale |
Component-wise scale factor. |
Detailed Description
The constraint function that updates the target property with the value of the first source multiplied by scale parameter (for Vector3 properties).
current = input[0] * scale. current, input[0], and scale indicates the target property, the first constraint source, and the scale parameter, respectively. * implies element-wise multiplication.
- Since:
- 2.4, DALi version 1.0.0
Constructor & Destructor Documentation
Dali::RelativeToConstraint::RelativeToConstraint | ( | float | scale | ) |
Constructor.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] scale Scale factor
Dali::RelativeToConstraint::RelativeToConstraint | ( | const Vector3 & | scale | ) |
Constructor.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] scale Scale factor
Member Function Documentation
void Dali::RelativeToConstraint::operator() | ( | Vector3 & | current, |
const PropertyInputContainer & | inputs | ||
) |
Functor.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in,out] current The current property value (vector3 property * scale factor) [in] inputs Property container for current property calculation