| … | |
… | |
| 235 | } elsif (@input == 2 ) { # two arguments -- parametric functions |
235 | } elsif (@input == 2 ) { # two arguments -- parametric functions |
| 236 | $self->{dx_rule} = $input[0] ; |
236 | $self->{dx_rule} = $input[0] ; |
| 237 | $self->{dy_rule} = $input[1] ; |
237 | $self->{dy_rule} = $input[1] ; |
| 238 | |
238 | |
| 239 | } else { |
239 | } else { |
| 240 | wwerror("$0:VectorField.pm:_initialize:", "Can't call VectorField with more than two arguments", ""); |
240 | die "VectorField.pm:_initialize: Can't call VectorField with more than two arguments"; |
| 241 | } |
241 | } |
| 242 | } |
242 | } |
| 243 | sub draw { |
243 | sub draw { |
| 244 | my $self = shift; # this function |
244 | my $self = shift; # this function |
| 245 | my $g = shift; # the graph containing the function. |
245 | my $g = shift; # the graph containing the function. |