Class: Sevgi::Geometry::Polar

Inherits:
Data
  • Object
show all
Defined in:
lib/sevgi/geometry/segment.rb

Overview

Lightweight polar value used where a plain length/angle tuple is enough.

Instance Attribute Summary collapse

Instance Attribute Details

#angleObject (readonly)

Returns the value of attribute angle

Returns:

  • (Object)

    the current value of angle



132
133
134
# File 'lib/sevgi/geometry/segment.rb', line 132

def angle
  @angle
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



132
133
134
# File 'lib/sevgi/geometry/segment.rb', line 132

def length
  @length
end