LeviLamina
Loading...
Searching...
No Matches
RectangleArea.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5class RectangleArea {
6public:
7 // member variables
8 // NOLINTBEGIN
9 ::ll::TypedStorage<4, 4, float> _x0;
10 ::ll::TypedStorage<4, 4, float> _x1;
11 ::ll::TypedStorage<4, 4, float> _y0;
12 ::ll::TypedStorage<4, 4, float> _y1;
13 // NOLINTEND
14
15public:
16 // prevent constructor by default
17 RectangleArea(RectangleArea const&);
18
19public:
20 // member functions
21 // NOLINTBEGIN
22 MCAPI RectangleArea();
23
24 MCAPI RectangleArea(float x0, float y0, float x1, float y1, bool checkForValidity);
25
26 MCAPI float centerX() const;
27
28 MCAPI float centerY() const;
29
30 MCAPI ::RectangleArea grow(float f) const;
31
32 MCAPI ::RectangleArea grow(::glm::vec2 const& f) const;
33
34 MCAPI bool isEmpty() const;
35
36 MCAPI bool isInside(float x, float y) const;
37
38 MCAPI bool isOverlapping(::RectangleArea const& rect) const;
39
40 MCAPI ::RectangleArea leftHalf() const;
41
42 MCFOLD float maxX() const;
43
44 MCFOLD float maxY() const;
45
46 MCFOLD float minX() const;
47
48 MCFOLD float minY() const;
49
50 MCAPI ::RectangleArea& operator=(::RectangleArea const& orig);
51
52 MCAPI ::RectangleArea rightHalf() const;
53
54 MCAPI ::RectangleArea scale(float f) const;
55
56 MCAPI void set(float x0, float y0, float x1, float y1);
57
58 MCAPI ::RectangleArea translate(float tx, float ty) const;
59
60 MCAPI ::RectangleArea uniformScale(float f) const;
61
62 MCAPI ::RectangleArea unionRects(::RectangleArea const& rect) const;
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
68 MCFOLD void* $ctor();
69
70 MCAPI void* $ctor(float x0, float y0, float x1, float y1, bool checkForValidity);
71 // NOLINTEND
72};
Definition RectangleArea.h:5