mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 14:45:28 +00:00
distinguish between Translate and Translated
This commit is contained in:
parent
1e81187aeb
commit
adeda6b7d1
|
@ -156,13 +156,22 @@ namespace OpenTK
|
|||
/// <summary>
|
||||
/// Returns a Box2 translated by the given amount.
|
||||
/// </summary>
|
||||
/// <param name="point"></param>
|
||||
/// <returns></returns>
|
||||
public Box2 Translate(Vector2 point)
|
||||
public Box2 Translated(Vector2 point)
|
||||
{
|
||||
return new Box2(Left + point.X, Top + point.Y, Right + point.X, Bottom + point.Y);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Translates this Box2 by the given amount.
|
||||
/// </summary>
|
||||
public void Translate(Vector2 point)
|
||||
{
|
||||
Left += point.X;
|
||||
Right += point.X;
|
||||
Top += point.Y;
|
||||
Bottom += point.Y;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Equality comparator.
|
||||
/// </summary>
|
||||
|
|
|
@ -156,13 +156,22 @@ namespace OpenTK
|
|||
/// <summary>
|
||||
/// Returns a Box2d translated by the given amount.
|
||||
/// </summary>
|
||||
/// <param name="point"></param>
|
||||
/// <returns></returns>
|
||||
public Box2d Translate(Vector2d point)
|
||||
public Box2d Translated(Vector2d point)
|
||||
{
|
||||
return new Box2d(Left + point.X, Top + point.Y, Right + point.X, Bottom + point.Y);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Translates this Box2d by the given amount.
|
||||
/// </summary>
|
||||
public void Translate(Vector2d point)
|
||||
{
|
||||
Left += point.X;
|
||||
Right += point.X;
|
||||
Top += point.Y;
|
||||
Bottom += point.Y;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Equality comparator.
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in a new issue