class Joseph::Net

Public Instance Methods

destroy!() click to toggle source
# File lib/joseph/net.rb, line 34
def destroy!
  Bridge.gerbv_image_delete_net(self)
end
flash?() click to toggle source
# File lib/joseph/net.rb, line 30
def flash?
  self[:aperture_state] == 2
end
hash() click to toggle source
# File lib/joseph/net.rb, line 17
def hash
  [
    self[:start_x],
    self[:start_y],
    self[:stop_x],
    self[:stop_y]
  ].hash
end
length() click to toggle source
# File lib/joseph/net.rb, line 26
def length
  (Vector[self[:start_x], self[:start_y]] - Vector[self[:stop_x], self[:stop_y]]).r
end