UMD.HCIL.Piccolo.PNode.RotateInPlace C# (CSharp) Method

RotateInPlace() public method

Rotates this node by theta (in degrees), and then translates the node so that the x, y position of its fullBounds stays constant.
public RotateInPlace ( float theta ) : void
theta float The amount to rotate by in degrees.
return void
		public virtual void RotateInPlace(float theta) {
			RectangleF b = FullBounds;
			float px = b.X;
			float py = b.Y;
			RotateBy(theta, 0, 0);
			b = FullBounds;
			OffsetBy(px - b.X, py - b.Y);
		}