RobotStudio event

RS SDK rotate RsTarget around a workobject

Hello.

I need some help with math.
What i have is an workobject and a target.
How can i rotate the target around the z-axis of the workobject? For example 30A?.

I know i can use the Matrix4 but i dont know how?

Thanks
Andreas