-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdrawingrectangle.monkey
More file actions
31 lines (30 loc) · 961 Bytes
/
drawingrectangle.monkey
File metadata and controls
31 lines (30 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#rem monkeydoc module fontmachine.drawingrectangle
header:This module contains the DrawingRectangle class.
This class is a simple X and Y vector, with additional Width and Height
#end
Import fontmachine.drawingpoint
#rem monkeydoc
This class contains the math representation of a rectangle.
#end
Class DrawingRectangle
#Rem monkeydoc
This field contains the X location of this point.
#END
Field x:Float
#Rem monkeydoc
This field contains the Y location of this point.
#END
Field y:Float
#Rem monkeydoc
This is the width representation of the DrawingRectangle class
#END
Field width:Int
#Rem monkeydoc
This is the height representation of the DrawingRectangle class
#END
Field height:Int
#Rem monkeydoc
This method returns a string with a representation of the rectangle coordinates.
#END
Method DebugString:String() ; Return "(" + x + ", " + y + ", " + width + ", " + height + ")" ; End
End Class