Skip to content

Rectangle.Offset Method

Definition

Namespace: Brine2D.Core

Overloads
Offset\(float, float\) Offsets the rectangle by the specified amount.
Offset\(Vector2\) Offsets the rectangle by the specified vector.

Rectangle.Offset\(float, float\) Method

Offsets the rectangle by the specified amount.

C#
public Brine2D.Core.Rectangle Offset(float offsetX, float offsetY);

Parameters

offsetX System.Single

offsetY System.Single

Returns

Rectangle

Rectangle.Offset\(Vector2\) Method

Offsets the rectangle by the specified vector.

C#
public Brine2D.Core.Rectangle Offset(System.Numerics.Vector2 offset);

Parameters

offset System.Numerics.Vector2

Returns

Rectangle