Piccolo.NET

PNode.CenterBoundsOnPoint Method 

Adjust the bounds of this node so that they are centered on the given point specified in the local coordinate system of this node.

public virtual bool CenterBoundsOnPoint(
   float x,
   float y
);

Parameters

x
The x coordinate of the point on which to center the bounds, in local coordinates.
y
The y coordinate of the point on which to center the bounds, in local coordinates.

Return Value

True if the bounds changed.

Remarks

Note that this method will modify the node's bounds, while CenterFullBoundsOnPoint will modify the node's matrix.

See Also

PNode Class | UMD.HCIL.Piccolo Namespace


Web Accessibility