Add mouse centering in Editor Viewport if initial location is too close to the edge
This commit is contained in:
@@ -197,6 +197,16 @@ namespace FlaxEngine
|
||||
/// </summary>
|
||||
public float ValuesSum => X + Y;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a vector with values being absolute values of that vector.
|
||||
/// </summary>
|
||||
public Vector2 Absolute => new Vector2(Mathf.Abs(X), Mathf.Abs(Y));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a vector with values being opposite to values of that vector.
|
||||
/// </summary>
|
||||
public Vector2 Negative => new Vector2(-X, -Y);
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the component at the specified index.
|
||||
/// </summary>
|
||||
|
||||
@@ -227,6 +227,16 @@ namespace FlaxEngine
|
||||
/// </summary>
|
||||
public float ValuesSum => X + Y + Z + W;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a vector with values being absolute values of that vector.
|
||||
/// </summary>
|
||||
public Vector4 Absolute => new Vector4(Mathf.Abs(X), Mathf.Abs(Y), Mathf.Abs(Z), Mathf.Abs(W));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a vector with values being opposite to values of that vector.
|
||||
/// </summary>
|
||||
public Vector4 Negative => new Vector4(-X, -Y, -Z, -W);
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the component at the specified index.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user