Class: MG::Point
- Inherits:
-
Object
- Object
- MG::Point
- Defined in:
- doc/API_reference.rb
Overview
node.location = point
Properties collapse
-
#x ⇒ Float
The x coordinate of the point.
-
#y ⇒ Float
The y coordinate of the point.
Helpers collapse
-
#+(point) ⇒ Point
Adds the coordinates of the receiver with the coordinates of the given point object.
-
#-(point) ⇒ Point
Substracts the coordinates of the receiver with the coordinates of the given point object.
Instance Attribute Details
#x ⇒ Float
Returns the x coordinate of the point.
1042 1043 1044 |
# File 'doc/API_reference.rb', line 1042 def x @x end |
#y ⇒ Float
Returns the y coordinate of the point.
1045 1046 1047 |
# File 'doc/API_reference.rb', line 1045 def y @y end |
Instance Method Details
#+(point) ⇒ Point
Adds the coordinates of the receiver with the coordinates of the given point object.
1054 |
# File 'doc/API_reference.rb', line 1054 def +(point); end |
#-(point) ⇒ Point
Substracts the coordinates of the receiver with the coordinates of the given point object.
1060 |
# File 'doc/API_reference.rb', line 1060 def -(point); end |