# Rotation of a cube

I came across the statement "rotation about a pivot and an axis" in javafx. The axis is defined byPoint3D and the pivotX, pivotY and pivotZ are of double type. I could not form a relation about what these actually deal with the rotation. Can anyone explain the geometry behind this with an example?

The Point3D object is a unit vector describing the arbitrary line around which the cube will be rotated. E.g. (1,0,0) would cause it to rotate around the x-axis. If the vector was (1,1,1) it would be a (non-normalized) axis that runs from one corner of the cube to the opposite corner (imagine holding a die between your fingers, on opposite corners, and spinning it).