Class: Charming::Projectile::Point
- Inherits:
-
Data
- Object
- Data
- Charming::Projectile::Point
- Defined in:
- lib/charming/projectile.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
-
#z ⇒ Object
readonly
Returns the value of attribute z.
Instance Method Summary collapse
-
#initialize(x:, y:, z: 0.0) ⇒ Point
constructor
A new instance of Point.
Constructor Details
#initialize(x:, y:, z: 0.0) ⇒ Point
Returns a new instance of Point.
18 19 20 |
# File 'lib/charming/projectile.rb', line 18 def initialize(x:, y:, z: 0.0) super end |
Instance Attribute Details
#x ⇒ Object (readonly)
Returns the value of attribute x
17 18 19 |
# File 'lib/charming/projectile.rb', line 17 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y
17 18 19 |
# File 'lib/charming/projectile.rb', line 17 def y @y end |
#z ⇒ Object (readonly)
Returns the value of attribute z
17 18 19 |
# File 'lib/charming/projectile.rb', line 17 def z @z end |