Struct ViewRect
Properties
halfWidth
public float halfWidth { get; }
halfHeight
public float halfHeight { get; }
size
public Vector2 size { get; }
center
public Vector2 center { get; }
topLeftPoint
public Vector2 topLeftPoint { get; }
topRightPoint
public Vector2 topRightPoint { get; }
bottomLeftPoint
public Vector2 bottomLeftPoint { get; }
bottomRightPoint
public Vector2 bottomRightPoint { get; }
x
public float x { get; }
y
public float y { get; }
angle
public float angle { get; }
width
public float width { get; }
height
public float height { get; }
upDirection
public Vector2 upDirection { get; }
rightDirection
public Vector2 rightDirection { get; }
Constructors
ViewRect(float x, float y, Vector2 size)
public ViewRect(float x, float y, Vector2 size)
ViewRect(float x, float y, float width, float height)
public ViewRect(float x, float y, float width, float height)
ViewRect(float x, float y, float width, float height, Vector2 rightDirection)
public ViewRect(float x, float y, float width, float height, Vector2 rightDirection)
ViewRect(Vector2 center, Vector2 size)
public ViewRect(Vector2 center, Vector2 size)
ViewRect(Vector2 center, Vector2 size, Vector2 rightDirection)
public ViewRect(Vector2 center, Vector2 size, Vector2 rightDirection)
ViewRect(Vector2 center, float width, float height)
public ViewRect(Vector2 center, float width, float height)
ViewRect(Vector2 center, float width, float height, Vector2 rightDirection)
public ViewRect(Vector2 center, float width, float height, Vector2 rightDirection)
ViewRect()
public ViewRect()
Methods
static ViewRect CreateByTopLeftPoint(Vector2 topLeftPoint, Vector2 size, Vector2 rightDirection)
public static ViewRect CreateByTopLeftPoint(Vector2 topLeftPoint, Vector2 size, Vector2 rightDirection)
static ViewRect CreateByTopRightPoint(Vector2 topRightPoint, Vector2 size, Vector2 rightDirection)
public static ViewRect CreateByTopRightPoint(Vector2 topRightPoint, Vector2 size, Vector2 rightDirection)
static ViewRect CreateByBottomLeftPoint(Vector2 bottomLeftPoint, Vector2 size, Vector2 rightDirection)
public static ViewRect CreateByBottomLeftPoint(Vector2 bottomLeftPoint, Vector2 size, Vector2 rightDirection)
static ViewRect CreateByBottomRightPoint(Vector2 bottomRightPoint, Vector2 size, Vector2 rightDirection)
public static ViewRect CreateByBottomRightPoint(Vector2 bottomRightPoint, Vector2 size, Vector2 rightDirection)
bool Contains(Vector2 point)
public bool Contains(Vector2 point)