Select all that apply. Which of the following will cause a counterclockwise rotation of a RotateTransition object, rtrans?
|
|||
|
|||
|
|||
|
The only one which rotate counterclockwise rotation of RotateTransition object is
rtrans.setFromAngle(-15.0) because,
The main diffrence between SetFromAngle and setByangle is, in setFromAngle the rotation starts from the angle which is initialised in the clockwise direction for example - rtrans.setFRomAngle(60.0) the angle given is 60.0 so the rotation starts from angle 60 in the clockwise direction
but whereas in setByAngle the object will rotate by a given angle. For example if we gave setByAngle(15.0) the object will rotate in 15 degrees in clockwise direction but if a negative sign is given for example setByAngle(-15.0) it will rorate in counterclockwise direction.
----------------------------------------------------------------------------------------------
Kindly comment your queries if any,upvote if you like it. Thank you!!
Get Answers For Free
Most questions answered within 1 hours.