summaryrefslogtreecommitdiffhomepage
path: root/dragon/numeric.rb
diff options
context:
space:
mode:
authorSimon Chiang <[email protected]>2021-04-23 09:46:41 -0600
committerAmir Rajan <[email protected]>2021-05-26 16:08:45 -0500
commitd5115606c96b0fe0affd72e6e0b72edce7e51042 (patch)
tree5d750d974dc947163dc4cb37a0c9bbac9266a207 /dragon/numeric.rb
parent1404fd05a99cf745c33a4316b9d5e1562083c3ae (diff)
downloaddragonruby-game-toolkit-contrib-d5115606c96b0fe0affd72e6e0b72edce7e51042.tar.gz
dragonruby-game-toolkit-contrib-d5115606c96b0fe0affd72e6e0b72edce7e51042.zip
Typo fixes
Diffstat (limited to 'dragon/numeric.rb')
-rw-r--r--dragon/numeric.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/dragon/numeric.rb b/dragon/numeric.rb
index 93bacae..3cf1314 100644
--- a/dragon/numeric.rb
+++ b/dragon/numeric.rb
@@ -256,7 +256,7 @@ S
self * Math::PI.fdiv(180)
end
- # Converts a number representing an angle in radians to degress.
+ # Converts a number representing an angle in radians to degrees.
#
# @gtk
def to_degrees
@@ -273,21 +273,21 @@ S
GTK::Geometry.to_square(self, x, y, anchor_x, anchor_y)
end
- # Returns a normal vector for a number that represents an angle in degress.
+ # Returns a normal vector for a number that represents an angle in degrees.
#
# @gtk
def vector max_value = 1
[vector_x(max_value), vector_y(max_value)]
end
- # Returns the y component of a normal vector for a number that represents an angle in degress.
+ # Returns the y component of a normal vector for a number that represents an angle in degrees.
#
# @gtk
def vector_y max_value = 1
max_value * Math.sin(self.to_radians)
end
- # Returns the x component of a normal vector for a number that represents an angle in degress.
+ # Returns the x component of a normal vector for a number that represents an angle in degrees.
#
# @gtk
def vector_x max_value = 1