facets 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/{test/FIXTURE → FIXTURE}/filelist/testfile.txt +0 -0
- data/{test/FIXTURE → FIXTURE}/filelist/testfile2.txt +0 -0
- data/{test/FIXTURE → FIXTURE}/ls_r/A.txt +0 -0
- data/{test/FIXTURE → FIXTURE}/ls_r/A/B.txt +0 -0
- data/{test/FIXTURE → FIXTURE}/ls_r/A/B/C.txt +0 -0
- data/{test/FIXTURE → FIXTURE}/test_file.txt +0 -0
- data/{test/FIXTURE → FIXTURE}/test_file2.txt +0 -0
- data/ProjectInfo +15 -2
- data/Reapfile +1 -1
- data/data/roll/facets/Libspec +17 -0
- data/forge/core/class/to_module.rb +3 -0
- data/forge/core/module/inherit.rb +79 -39
- data/forge/core/module/inherit0.rb +59 -0
- data/forge/core/module/to_module.rb +37 -0
- data/{lib/facets → forge}/core/string/frequency.rb +1 -0
- data/{lib/facets → forge}/core/string/probability.rb +1 -0
- data/forge/core/string/to_arr.rb +57 -0
- data/forge/more/capsule2.rb +152 -0
- data/{lib/facets → forge}/more/classinherit.rb +0 -2
- data/forge/more/clean.rb +35 -0
- data/forge/more/codepack.rb +16 -10
- data/lib/facet/command.rb +1 -0
- data/lib/facet/config/datadir.rb +1 -0
- data/lib/facet/file/self/rootname.rb +1 -0
- data/lib/facet/kernel/__callee__.rb +1 -0
- data/lib/facet/kernel/__method__.rb +1 -0
- data/lib/facet/kernel/quaclass.rb +1 -0
- data/lib/facet/kernel/singleton_class.rb +1 -0
- data/lib/facet/module/class_extension.rb +1 -0
- data/lib/facets/core/config/datadir.rb +20 -0
- data/lib/facets/core/file/self/rootname.rb +22 -0
- data/lib/facets/core/hash/to_ostruct_recurse.rb +4 -0
- data/lib/facets/core/kernel/__callee__.rb +2 -0
- data/lib/facets/core/kernel/__method__.rb +45 -0
- data/lib/facets/core/kernel/quaclass.rb +36 -0
- data/lib/facets/core/kernel/singleton_class.rb +36 -0
- data/lib/facets/core/module/class_extension.rb +153 -0
- data/lib/facets/core/symbol/to_proc.rb +12 -3
- data/lib/facets/more/annattr.rb +1 -0
- data/lib/facets/more/annotation.rb +12 -9
- data/lib/facets/more/basicobject.rb +8 -0
- data/lib/facets/more/classmethods.rb +17 -20
- data/lib/facets/more/command.rb +307 -0
- data/lib/facets/more/inheritor.rb +7 -3
- data/lib/facets/more/tuple.rb +61 -13
- data/lib/facets/more/typecast.rb +59 -58
- data/note/CHANGELOG +13 -0
- data/test/lib/facets/core/array/test_at_rand.rb +1 -1
- data/test/lib/facets/core/array/test_delete_unless.rb +1 -1
- data/test/lib/facets/core/array/test_delete_values.rb +1 -1
- data/test/lib/facets/core/array/test_delete_values_at.rb +1 -1
- data/test/lib/facets/core/array/test_first.rb +1 -1
- data/test/lib/facets/core/array/test_head.rb +1 -1
- data/test/lib/facets/core/array/test_last_index.rb +1 -1
- data/test/lib/facets/core/array/test_merge.rb +1 -1
- data/test/lib/facets/core/array/test_mid.rb +1 -1
- data/test/lib/facets/core/array/test_middle.rb +1 -1
- data/test/lib/facets/core/array/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/array/test_op_store.rb +1 -1
- data/test/lib/facets/core/array/test_pick.rb +1 -1
- data/test/lib/facets/core/array/test_pos.rb +1 -1
- data/test/lib/facets/core/array/test_pot.rb +1 -1
- data/test/lib/facets/core/array/test_pull.rb +1 -1
- data/test/lib/facets/core/array/test_rand_index.rb +1 -1
- data/test/lib/facets/core/array/test_rand_subset.rb +1 -1
- data/test/lib/facets/core/array/test_range.rb +1 -1
- data/test/lib/facets/core/array/test_rotate.rb +1 -1
- data/test/lib/facets/core/array/test_select.rb +1 -1
- data/test/lib/facets/core/array/test_shuffle.rb +1 -1
- data/test/lib/facets/core/array/test_thru.rb +1 -1
- data/test/lib/facets/core/array/test_to_b.rb +1 -1
- data/test/lib/facets/core/array/test_to_h.rb +1 -1
- data/test/lib/facets/core/array/test_to_hash.rb +1 -1
- data/test/lib/facets/core/binding/self/test_of_caller.rb +1 -1
- data/test/lib/facets/core/binding/test___LINE__.rb +1 -1
- data/test/lib/facets/core/binding/test_call_stack.rb +1 -1
- data/test/lib/facets/core/binding/test_called.rb +1 -1
- data/test/lib/facets/core/binding/test_caller.rb +1 -1
- data/test/lib/facets/core/binding/test_defined.rb +1 -1
- data/test/lib/facets/core/binding/test_eval.rb +1 -1
- data/test/lib/facets/core/binding/test_local_variables.rb +1 -1
- data/test/lib/facets/core/binding/test_method_name.rb +1 -1
- data/test/lib/facets/core/binding/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/binding/test_op_store.rb +1 -1
- data/test/lib/facets/core/binding/test_self.rb +1 -1
- data/test/lib/facets/core/class/test_cattr.rb +1 -1
- data/test/lib/facets/core/class/test_descendents.rb +1 -1
- data/test/lib/facets/core/class/test_method_name.rb +1 -1
- data/test/lib/facets/core/class/test_remove_descendents.rb +1 -1
- data/test/lib/facets/core/class/test_unix_path.rb +1 -1
- data/test/lib/facets/core/comparable/test_at_least.rb +1 -1
- data/test/lib/facets/core/comparable/test_clip.rb +1 -1
- data/test/lib/facets/core/comparable/test_cmp.rb +1 -1
- data/test/lib/facets/core/continuation/self/test_create.rb +1 -1
- data/test/lib/facets/core/date/test_days_in_month.rb +1 -1
- data/test/lib/facets/core/date/test_days_of_month.rb +1 -1
- data/test/lib/facets/core/date/test_stamp.rb +1 -1
- data/test/lib/facets/core/date/test_to_date.rb +1 -1
- data/test/lib/facets/core/date/test_to_s.rb +1 -1
- data/test/lib/facets/core/date/test_to_time.rb +1 -1
- data/test/lib/facets/core/dir/self/test_ancestor.rb +1 -1
- data/test/lib/facets/core/dir/self/test_ascend.rb +1 -1
- data/test/lib/facets/core/enumerable/self/test_combinations.rb +1 -1
- data/test/lib/facets/core/enumerable/self/test_cross.rb +1 -1
- data/test/lib/facets/core/enumerable/test_collect_with_index.rb +1 -1
- data/test/lib/facets/core/enumerable/test_commonality.rb +1 -1
- data/test/lib/facets/core/enumerable/test_compact_collect.rb +1 -1
- data/test/lib/facets/core/enumerable/test_count.rb +1 -1
- data/test/lib/facets/core/enumerable/test_cross.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_combination.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_pair.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_slice.rb +1 -1
- data/test/lib/facets/core/enumerable/test_each_unique_pair.rb +1 -1
- data/test/lib/facets/core/enumerable/test_entropy.rb +1 -1
- data/test/lib/facets/core/enumerable/test_every.rb +1 -1
- data/test/lib/facets/core/enumerable/test_ew.rb +1 -1
- data/test/lib/facets/core/enumerable/test_filter_collect.rb +1 -1
- data/test/lib/facets/core/enumerable/test_find_collisions.rb +1 -1
- data/test/lib/facets/core/enumerable/test_frequency.rb +1 -1
- data/test/lib/facets/core/enumerable/test_graph.rb +1 -1
- data/test/lib/facets/core/enumerable/test_ideal_entropy.rb +1 -1
- data/test/lib/facets/core/enumerable/test_none.rb +1 -1
- data/test/lib/facets/core/enumerable/test_occur.rb +1 -1
- data/test/lib/facets/core/enumerable/test_one.rb +1 -1
- data/test/lib/facets/core/enumerable/test_op_pow.rb +1 -1
- data/test/lib/facets/core/enumerable/test_partition_by.rb +1 -1
- data/test/lib/facets/core/enumerable/test_permute.rb +1 -1
- data/test/lib/facets/core/enumerable/test_probability.rb +1 -1
- data/test/lib/facets/core/enumerable/test_to_h.rb +1 -1
- data/test/lib/facets/core/enumerable/test_uniq_by.rb +1 -1
- data/test/lib/facets/core/file/self/test_create.rb +1 -1
- data/test/lib/facets/core/file/self/test_open_as_string.rb +1 -1
- data/test/lib/facets/core/file/self/test_read_list.rb +1 -1
- data/test/lib/facets/core/file/self/test_sanitize.rb +1 -1
- data/test/lib/facets/core/file/self/test_split_all.rb +1 -1
- data/test/lib/facets/core/float/test_round_at.rb +1 -1
- data/test/lib/facets/core/float/test_round_to.rb +1 -1
- data/test/lib/facets/core/hash/self/test_zipnew.rb +1 -1
- data/test/lib/facets/core/hash/test_alias.rb +1 -1
- data/test/lib/facets/core/hash/test_assert_has_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_assert_has_only_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_at.rb +1 -1
- data/test/lib/facets/core/hash/test_collate.rb +1 -1
- data/test/lib/facets/core/hash/test_each.rb +1 -1
- data/test/lib/facets/core/hash/test_each_with_index.rb +1 -1
- data/test/lib/facets/core/hash/test_each_with_key.rb +1 -1
- data/test/lib/facets/core/hash/test_graph.rb +1 -1
- data/test/lib/facets/core/hash/test_has_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_has_only_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_inverse.rb +1 -1
- data/test/lib/facets/core/hash/test_keys_to_s.rb +1 -1
- data/test/lib/facets/core/hash/test_keys_to_sym.rb +1 -1
- data/test/lib/facets/core/hash/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/hash/test_op_lshift.rb +1 -1
- data/test/lib/facets/core/hash/test_rand_key.rb +1 -1
- data/test/lib/facets/core/hash/test_rand_pair.rb +1 -1
- data/test/lib/facets/core/hash/test_rand_value.rb +1 -1
- data/test/lib/facets/core/hash/test_replace_each.rb +1 -1
- data/test/lib/facets/core/hash/test_shuffle.rb +1 -1
- data/test/lib/facets/core/hash/test_slice.rb +1 -1
- data/test/lib/facets/core/hash/test_swap.rb +1 -1
- data/test/lib/facets/core/hash/test_swapkey.rb +1 -1
- data/test/lib/facets/core/hash/test_to_h.rb +1 -1
- data/test/lib/facets/core/hash/test_to_ostruct.rb +1 -1
- data/test/lib/facets/core/hash/test_to_ostruct_recurse.rb +1 -1
- data/test/lib/facets/core/hash/test_traverse.rb +1 -1
- data/test/lib/facets/core/hash/test_update_each.rb +1 -1
- data/test/lib/facets/core/hash/test_update_keys.rb +1 -1
- data/test/lib/facets/core/hash/test_update_values.rb +1 -1
- data/test/lib/facets/core/hash/test_weave.rb +1 -1
- data/test/lib/facets/core/integer/test_factorial.rb +1 -1
- data/test/lib/facets/core/integer/test_multiple.rb +1 -1
- data/test/lib/facets/core/integer/test_ordinal.rb +1 -1
- data/test/lib/facets/core/integer/test_times_collect.rb +1 -1
- data/test/lib/facets/core/kernel/test___class__.rb +1 -1
- data/test/lib/facets/core/kernel/test___method__.rb +26 -0
- data/test/lib/facets/core/kernel/test_as.rb +1 -1
- data/test/lib/facets/core/kernel/test_assign_from.rb +1 -1
- data/test/lib/facets/core/kernel/test_assign_with.rb +1 -1
- data/test/lib/facets/core/kernel/test_bool.rb +1 -1
- data/test/lib/facets/core/kernel/test_bug.rb +1 -1
- data/test/lib/facets/core/kernel/test_call_stack.rb +1 -1
- data/test/lib/facets/core/kernel/test_called.rb +1 -1
- data/test/lib/facets/core/kernel/test_constant.rb +1 -1
- data/test/lib/facets/core/kernel/test_copy.rb +1 -1
- data/test/lib/facets/core/kernel/test_deep_copy.rb +1 -1
- data/test/lib/facets/core/kernel/test_demo.rb +1 -1
- data/test/lib/facets/core/kernel/test_fn.rb +1 -1
- data/test/lib/facets/core/kernel/test_generate_method_name.rb +1 -1
- data/test/lib/facets/core/kernel/test_get_by_id.rb +1 -1
- data/test/lib/facets/core/kernel/test_here.rb +1 -1
- data/test/lib/facets/core/kernel/test_in.rb +1 -1
- data/test/lib/facets/core/kernel/test_maybe.rb +1 -1
- data/test/lib/facets/core/kernel/test_metaclass.rb +1 -1
- data/test/lib/facets/core/kernel/test_method.rb +1 -1
- data/test/lib/facets/core/kernel/test_methods.rb +1 -1
- data/test/lib/facets/core/kernel/test_new.rb +1 -1
- data/test/lib/facets/core/kernel/test_object_class.rb +1 -1
- data/test/lib/facets/core/kernel/test_object_hexid.rb +1 -1
- data/test/lib/facets/core/kernel/test_quaclass.rb +27 -0
- data/test/lib/facets/core/kernel/test_require_all.rb +1 -1
- data/test/lib/facets/core/kernel/test_require_esc.rb +1 -1
- data/test/lib/facets/core/kernel/test_require_facet.rb +1 -1
- data/test/lib/facets/core/kernel/test_resc.rb +1 -1
- data/test/lib/facets/core/kernel/test_returning.rb +1 -1
- data/test/lib/facets/core/kernel/test_send_as.rb +1 -1
- data/test/lib/facets/core/kernel/test_set_from.rb +1 -1
- data/test/lib/facets/core/kernel/test_set_with.rb +1 -1
- data/test/lib/facets/core/kernel/test_silently.rb +1 -1
- data/test/lib/facets/core/kernel/test_singleton.rb +1 -1
- data/test/lib/facets/core/kernel/test_singleton_class.rb +27 -0
- data/test/lib/facets/core/kernel/test_superior.rb +1 -1
- data/test/lib/facets/core/kernel/test_supermethod.rb +1 -1
- data/test/lib/facets/core/kernel/test_this.rb +1 -1
- data/test/lib/facets/core/kernel/test_to_b.rb +1 -1
- data/test/lib/facets/core/kernel/test_to_bool.rb +1 -1
- data/test/lib/facets/core/kernel/test_uri.rb +1 -1
- data/test/lib/facets/core/kernel/test_val.rb +1 -1
- data/test/lib/facets/core/kernel/test_with_accessor.rb +1 -1
- data/test/lib/facets/core/matchdata/test_match.rb +1 -1
- data/test/lib/facets/core/matchdata/test_matchtree.rb +1 -1
- data/test/lib/facets/core/module/test_abstract.rb +1 -1
- data/test/lib/facets/core/module/test_alias_module_function.rb +1 -1
- data/test/lib/facets/core/module/test_ancestor.rb +1 -1
- data/test/lib/facets/core/module/test_basename.rb +1 -1
- data/test/lib/facets/core/module/test_by_name.rb +1 -1
- data/test/lib/facets/{more/test_classinherit.rb → core/module/test_class_extension.rb} +13 -8
- data/test/lib/facets/core/module/test_clone_using.rb +1 -1
- data/test/lib/facets/core/module/test_dirname.rb +1 -1
- data/test/lib/facets/core/module/test_equate_on.rb +1 -1
- data/test/lib/facets/core/module/test_generate_instance_method_name.rb +1 -1
- data/test/lib/facets/core/module/test_include_as.rb +1 -1
- data/test/lib/facets/core/module/test_initializer.rb +1 -1
- data/test/lib/facets/core/module/test_instance_methods.rb +1 -1
- data/test/lib/facets/core/module/test_integrate.rb +1 -1
- data/test/lib/facets/core/module/test_memoize.rb +1 -1
- data/test/lib/facets/core/module/test_modspace.rb +1 -1
- data/test/lib/facets/core/module/test_namespace.rb +1 -1
- data/test/lib/facets/core/module/test_nesting.rb +1 -1
- data/test/lib/facets/core/module/test_nodef.rb +1 -1
- data/test/lib/facets/core/module/test_on_included.rb +1 -1
- data/test/lib/facets/core/module/test_redef.rb +1 -1
- data/test/lib/facets/core/module/test_redefine_method.rb +1 -1
- data/test/lib/facets/core/module/test_redirect.rb +1 -1
- data/test/lib/facets/core/module/test_redirect_method.rb +1 -1
- data/test/lib/facets/core/module/test_remove.rb +1 -1
- data/test/lib/facets/core/module/test_rename.rb +1 -1
- data/test/lib/facets/core/module/test_rename_method.rb +1 -1
- data/test/lib/facets/core/module/test_revisal.rb +1 -1
- data/test/lib/facets/core/module/test_shadow_method.rb +1 -1
- data/test/lib/facets/core/module/test_sort_on.rb +1 -1
- data/test/lib/facets/core/module/test_this.rb +1 -1
- data/test/lib/facets/core/module/test_wrap.rb +1 -1
- data/test/lib/facets/core/module/test_wrap_method.rb +1 -1
- data/test/lib/facets/core/nilclass/test_blank.rb +1 -1
- data/test/lib/facets/core/nilclass/test_empty.rb +1 -1
- data/test/lib/facets/core/nilclass/test_include.rb +1 -1
- data/test/lib/facets/core/nilclass/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/nilclass/test_size.rb +1 -1
- data/test/lib/facets/core/nilclass/test_to_h.rb +1 -1
- data/test/lib/facets/core/numeric/test_approx.rb +1 -1
- data/test/lib/facets/core/numeric/test_ceil_multiple.rb +1 -1
- data/test/lib/facets/core/numeric/test_succ.rb +1 -1
- data/test/lib/facets/core/numeric/test_to_b.rb +1 -1
- data/test/lib/facets/core/ostruct/test___merge__.rb +1 -1
- data/test/lib/facets/core/ostruct/test___update__.rb +1 -1
- data/test/lib/facets/core/ostruct/test_op_fetch.rb +1 -1
- data/test/lib/facets/core/ostruct/test_op_store.rb +1 -1
- data/test/lib/facets/core/proc/test_compose.rb +1 -1
- data/test/lib/facets/core/proc/test_to_method.rb +1 -1
- data/test/lib/facets/core/range/test_to_r.rb +1 -1
- data/test/lib/facets/core/range/test_to_range.rb +1 -1
- data/test/lib/facets/core/range/test_umbrella.rb +1 -1
- data/test/lib/facets/core/range/test_within.rb +1 -1
- data/test/lib/facets/core/regexp/test_arity.rb +1 -1
- data/test/lib/facets/core/regexp/test_to_re.rb +1 -1
- data/test/lib/facets/core/regexp/test_to_regexp.rb +1 -1
- data/test/lib/facets/core/string/self/test_interpolate.rb +1 -1
- data/test/lib/facets/core/string/self/test_patterns.rb +1 -1
- data/test/lib/facets/core/string/self/test_rand_letter.rb +1 -1
- data/test/lib/facets/core/string/test_align_center.rb +1 -1
- data/test/lib/facets/core/string/test_at_rand.rb +1 -1
- data/test/lib/facets/core/string/test_basename.rb +1 -1
- data/test/lib/facets/core/string/test_blank.rb +1 -1
- data/test/lib/facets/core/string/test_bracket.rb +1 -1
- data/test/lib/facets/core/string/test_camelcase.rb +1 -1
- data/test/lib/facets/core/string/test_camelize.rb +1 -1
- data/test/lib/facets/core/string/test_capitalized.rb +1 -1
- data/test/lib/facets/core/string/test_chars.rb +1 -1
- data/test/lib/facets/core/string/test_cmp.rb +1 -1
- data/test/lib/facets/core/string/test_demodulize.rb +1 -1
- data/test/lib/facets/core/string/test_downcase.rb +1 -1
- data/test/lib/facets/core/string/test_dresner.rb +1 -1
- data/test/lib/facets/core/string/test_each_char.rb +1 -1
- data/test/lib/facets/core/string/test_each_word.rb +1 -1
- data/test/lib/facets/core/string/test_first.rb +1 -1
- data/test/lib/facets/core/string/test_fold.rb +1 -1
- data/test/lib/facets/core/string/test_humanize.rb +1 -1
- data/test/lib/facets/core/string/test_indent.rb +1 -1
- data/test/lib/facets/core/string/test_index_all.rb +1 -1
- data/test/lib/facets/core/string/test_last.rb +1 -1
- data/test/lib/facets/core/string/test_line_wrap.rb +1 -1
- data/test/lib/facets/core/string/test_lines.rb +1 -1
- data/test/lib/facets/core/string/test_lowercase.rb +1 -1
- data/test/lib/facets/core/string/test_margin.rb +1 -1
- data/test/lib/facets/core/string/test_methodize.rb +1 -1
- data/test/lib/facets/core/string/test_modulize.rb +1 -1
- data/test/lib/facets/core/string/test_mscan.rb +1 -1
- data/test/lib/facets/core/string/test_natcmp.rb +1 -1
- data/test/lib/facets/core/string/test_nchar.rb +1 -1
- data/test/lib/facets/core/string/test_pathize.rb +1 -1
- data/test/lib/facets/core/string/test_pop.rb +1 -1
- data/test/lib/facets/core/string/test_pot.rb +1 -1
- data/test/lib/facets/core/string/test_push.rb +1 -1
- data/test/lib/facets/core/string/test_quote.rb +1 -1
- data/test/lib/facets/core/string/test_rand_byte.rb +1 -1
- data/test/lib/facets/core/string/test_rand_index.rb +1 -1
- data/test/lib/facets/core/string/test_range.rb +1 -1
- data/test/lib/facets/core/string/test_range_all.rb +1 -1
- data/test/lib/facets/core/string/test_range_of_line.rb +1 -1
- data/test/lib/facets/core/string/test_regesc.rb +1 -1
- data/test/lib/facets/core/string/test_shatter.rb +1 -1
- data/test/lib/facets/core/string/test_shift.rb +1 -1
- data/test/lib/facets/core/string/test_shuffle.rb +1 -1
- data/test/lib/facets/core/string/test_similarity.rb +1 -1
- data/test/lib/facets/core/string/test_singular.rb +1 -1
- data/test/lib/facets/core/string/test_soundex.rb +1 -1
- data/test/lib/facets/core/string/test_succ.rb +1 -1
- data/test/lib/facets/core/string/test_to_a.rb +1 -1
- data/test/lib/facets/core/string/test_to_b.rb +1 -1
- data/test/lib/facets/core/string/test_to_const.rb +1 -1
- data/test/lib/facets/core/string/test_to_date.rb +1 -1
- data/test/lib/facets/core/string/test_to_proc.rb +1 -1
- data/test/lib/facets/core/string/test_to_re.rb +1 -1
- data/test/lib/facets/core/string/test_to_time.rb +1 -1
- data/test/lib/facets/core/string/test_unix_crypt.rb +1 -1
- data/test/lib/facets/core/string/test_unpack.rb +1 -1
- data/test/lib/facets/core/string/test_unshift.rb +1 -1
- data/test/lib/facets/core/string/test_upcase.rb +1 -1
- data/test/lib/facets/core/string/test_whitespace.rb +1 -1
- data/test/lib/facets/core/string/test_word_filter.rb +1 -1
- data/test/lib/facets/core/string/test_word_wrap.rb +1 -1
- data/test/lib/facets/core/string/test_words.rb +1 -1
- data/test/lib/facets/core/symbol/test_camelcase.rb +1 -1
- data/test/lib/facets/core/symbol/test_camelize.rb +1 -1
- data/test/lib/facets/core/symbol/test_capitalize.rb +1 -1
- data/test/lib/facets/core/symbol/test_capitalized.rb +1 -1
- data/test/lib/facets/core/symbol/test_downcase.rb +1 -1
- data/test/lib/facets/core/symbol/test_not.rb +1 -1
- data/test/lib/facets/core/symbol/test_pad.rb +1 -1
- data/test/lib/facets/core/symbol/test_succ.rb +1 -1
- data/test/lib/facets/core/symbol/test_to_const.rb +1 -1
- data/test/lib/facets/core/symbol/test_to_proc.rb +8 -2
- data/test/lib/facets/core/symbol/test_to_str.rb +1 -1
- data/test/lib/facets/core/symbol/test_underscore.rb +1 -1
- data/test/lib/facets/core/symbol/test_upcase.rb +1 -1
- data/test/lib/facets/core/time/test_change.rb +1 -1
- data/test/lib/facets/core/time/test_elapse.rb +1 -1
- data/test/lib/facets/core/time/test_stamp.rb +1 -1
- data/test/lib/facets/core/time/test_to_date.rb +1 -1
- data/test/lib/facets/core/time/test_to_s.rb +1 -1
- data/test/lib/facets/core/time/test_to_time.rb +1 -1
- data/test/lib/facets/more/test_annattr.rb +1 -1
- data/test/lib/facets/more/test_annotation.rb +1 -1
- data/test/lib/facets/more/test_ansicode.rb +1 -1
- data/test/lib/facets/more/test_association.rb +1 -1
- data/test/lib/facets/more/test_basicobject.rb +1 -1
- data/test/lib/facets/more/test_bbcode.rb +1 -1
- data/test/lib/facets/more/test_binaryreader.rb +1 -1
- data/test/lib/facets/more/test_bitmask.rb +1 -1
- data/test/lib/facets/more/test_bytes.rb +1 -1
- data/test/lib/facets/more/test_classmethods.rb +8 -4
- data/test/lib/facets/more/test_command.rb +38 -0
- data/test/lib/facets/more/test_coroutine.rb +1 -1
- data/test/lib/facets/more/test_crypt.rb +1 -1
- data/test/lib/facets/more/test_dictionary.rb +1 -1
- data/test/lib/facets/more/test_elementor.rb +1 -1
- data/test/lib/facets/more/test_enumerablepass.rb +1 -1
- data/test/lib/facets/more/test_floatstring.rb +1 -1
- data/test/lib/facets/more/test_functor.rb +1 -1
- data/test/lib/facets/more/test_htmlbuilder.rb +1 -1
- data/test/lib/facets/more/test_inheritor.rb +1 -1
- data/test/lib/facets/more/test_interval.rb +1 -1
- data/test/lib/facets/more/test_json.rb +1 -1
- data/test/lib/facets/more/test_lisp.rb +1 -1
- data/test/lib/facets/more/test_lisp_format.rb +1 -1
- data/test/lib/facets/more/test_lrucache.rb +1 -1
- data/test/lib/facets/more/test_mathconstants.rb +1 -1
- data/test/lib/facets/more/test_methodprobe.rb +1 -1
- data/test/lib/facets/more/test_multipliers.rb +1 -1
- data/test/lib/facets/more/test_multiton.rb +1 -1
- data/test/lib/facets/more/test_nackclass.rb +1 -1
- data/test/lib/facets/more/test_nilcomparable.rb +1 -1
- data/test/lib/facets/more/test_opencascade.rb +1 -1
- data/test/lib/facets/more/test_openobject.rb +1 -1
- data/test/lib/facets/more/test_overload.rb +1 -1
- data/test/lib/facets/more/test_paramix.rb +1 -1
- data/test/lib/facets/more/test_pqueue.rb +1 -1
- data/test/lib/facets/more/test_preinitialize.rb +1 -1
- data/test/lib/facets/more/test_promoteself.rb +1 -1
- data/test/lib/facets/more/test_recorder.rb +1 -1
- data/test/lib/facets/more/test_snapshot.rb +1 -1
- data/test/lib/facets/more/test_statichash.rb +1 -1
- data/test/lib/facets/more/test_syncarray.rb +1 -1
- data/test/lib/facets/more/test_synchash.rb +1 -1
- data/test/lib/facets/more/test_tagiterator.rb +1 -1
- data/test/lib/facets/more/test_taskable.rb +1 -1
- data/test/lib/facets/more/test_timer.rb +1 -1
- data/test/lib/facets/more/test_times.rb +1 -1
- data/test/lib/facets/more/test_tuple.rb +10 -2
- data/test/lib/facets/more/test_typecast.rb +7 -4
- data/test/lib/facets/more/test_uninheritable.rb +1 -1
- data/test/lib/facets/more/test_units.rb +1 -1
- data/test/lib/facets/more/test_xmlbuilder.rb +1 -1
- data/test/lib/facets/more/test_xmlhelper.rb +1 -1
- data/test/lib/facets/more/test_xoxo.rb +1 -1
- data/test/lib/facets/more/test_yamlstruct.rb +1 -1
- metadata +1660 -2489
- data/lib/facet/classinherit.rb +0 -1
- data/lib/facet/consoleapp.rb +0 -1
- data/lib/facet/gem/self/gemdir.rb +0 -1
- data/lib/facet/kernel/me.rb +0 -1
- data/lib/facet/kernel/method_name.rb +0 -1
- data/lib/facet/kernel/methodname.rb +0 -1
- data/lib/facet/module/inherit.rb +0 -1
- data/lib/facet/module/singleton_to_module.rb +0 -1
- data/lib/facet/string/frequency.rb +0 -1
- data/lib/facet/string/probability.rb +0 -1
- data/lib/facets/core/gem/self/gemdir.rb +0 -12
- data/lib/facets/core/kernel/me.rb +0 -18
- data/lib/facets/core/kernel/method_name.rb +0 -2
- data/lib/facets/core/kernel/methodname.rb +0 -49
- data/lib/facets/core/module/inherit.rb +0 -70
- data/lib/facets/core/module/singleton_to_module.rb +0 -23
- data/lib/facets/more/consoleapp.rb +0 -167
- data/test/lib/facets/core/kernel/test_methodname.rb +0 -31
- data/test/lib/facets/core/module/test_inherit.rb +0 -58
- data/test/lib/facets/core/string/test_frequency.rb +0 -28
- data/test/lib/facets/core/string/test_probability.rb +0 -28
- data/test/lib/facets/more/test_annotatedattr.rb +0 -39
- data/web/doc/api/core/classes/Array.html +0 -1356
- data/web/doc/api/core/classes/Binding.html +0 -538
- data/web/doc/api/core/classes/Class.html +0 -475
- data/web/doc/api/core/classes/Comparable.html +0 -231
- data/web/doc/api/core/classes/Continuation.html +0 -168
- data/web/doc/api/core/classes/Date.html +0 -219
- data/web/doc/api/core/classes/Dir.html +0 -208
- data/web/doc/api/core/classes/Enumerable.html +0 -1435
- data/web/doc/api/core/classes/FalseClass.html +0 -115
- data/web/doc/api/core/classes/File.html +0 -349
- data/web/doc/api/core/classes/FileUtils.html +0 -468
- data/web/doc/api/core/classes/Float.html +0 -157
- data/web/doc/api/core/classes/Gem.html +0 -171
- data/web/doc/api/core/classes/Hash.html +0 -1657
- data/web/doc/api/core/classes/Integer.html +0 -353
- data/web/doc/api/core/classes/Kernal.html +0 -86
- data/web/doc/api/core/classes/Kernel.html +0 -1972
- data/web/doc/api/core/classes/Logger.html +0 -157
- data/web/doc/api/core/classes/MatchData.html +0 -195
- data/web/doc/api/core/classes/Module.html +0 -1712
- data/web/doc/api/core/classes/NackClass.html +0 -92
- data/web/doc/api/core/classes/NilClass.html +0 -332
- data/web/doc/api/core/classes/Numeric.html +0 -306
- data/web/doc/api/core/classes/Object.html +0 -332
- data/web/doc/api/core/classes/OpenStruct.html +0 -315
- data/web/doc/api/core/classes/Pathname.html +0 -154
- data/web/doc/api/core/classes/Proc.html +0 -154
- data/web/doc/api/core/classes/Range.html +0 -235
- data/web/doc/api/core/classes/Regexp.html +0 -185
- data/web/doc/api/core/classes/ScriptBug.html +0 -92
- data/web/doc/api/core/classes/String.html +0 -3286
- data/web/doc/api/core/classes/Symbol.html +0 -463
- data/web/doc/api/core/classes/Time.html +0 -307
- data/web/doc/api/core/classes/TrueClass.html +0 -115
- data/web/doc/api/core/classes/UnboundMethod.html +0 -121
- data/web/doc/api/core/created.rid +0 -1
- data/web/doc/api/core/files/AUTHORS.html +0 -206
- data/web/doc/api/core/files/COPYING.html +0 -517
- data/web/doc/api/core/files/README.html +0 -386
- data/web/doc/api/core/files/WARNING.html +0 -151
- data/web/doc/api/core/files/lib/facets/core/all_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/array/at_rand_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/body_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/array/delete_unless_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/delete_values_at_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/delete_values_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/each_with_key_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/first_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/array/foot_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/array/head_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/join_sentence_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/last_index_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/last_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/array/merge_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/mid_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/middle_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/op_fetch_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/op_mod_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/op_store_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/array/pick_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/pos_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/pot_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/pull_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/rand_index_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/rand_subset_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/range_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/rotate_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/select_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/shuffle_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/store_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/tail_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/array/thru_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/to_b_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/to_h_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/to_hash_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/array/unzip_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/binding/__DIR___rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/binding/__FILE___rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/binding/__LINE___rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/binding/call_stack_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/binding/called_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/binding/caller_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/binding/defined_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/binding/eval_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/binding/local_variables_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/binding/method_name_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/binding/op_fetch_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/binding/op_store_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/binding/self/of_caller_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/binding/self_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/binding_rb.html +0 -109
- data/web/doc/api/core/files/lib/facets/core/class/by_name_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/class/cattr_accessor_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/class/cattr_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/class/cattr_reader_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/class/cattr_writer_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/class/descendents_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/class/method_name_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/class/remove_descendents_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/class/remove_subclasses_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/class/subclasses_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/class/to_proc_rb.html +0 -98
- data/web/doc/api/core/files/lib/facets/core/class/unix_path_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/comparable/at_least_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/comparable/at_most_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/comparable/cap_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/comparable/clip_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/comparable/cmp_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/continuation/self/create_rb.html +0 -148
- data/web/doc/api/core/files/lib/facets/core/date/days_in_month_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/date/days_of_month_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/date/stamp_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/date/to_date_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/date/to_s_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/date/to_time_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/dir/self/ancestor_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/dir/self/ascend_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/dir/self/descend_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/dir/self/ls_r_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/dir/self/recurse_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/accumulate_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/collect_if_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/collect_with_counter_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/collect_with_index_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/commonality_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/compact_collect_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/compact_map_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/count_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/cross_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/each_by_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/each_combination_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/each_pair_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/each_permutation_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/each_slice_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/each_unique_pair_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/each_with_counter_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/elementwise_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/entropy_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/enumerable/every_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/ew_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/filter_collect_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/filter_map_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/find_collisions_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/frequency_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/graph_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/ideal_entropy_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/map_if_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/map_with_counter_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/map_with_index_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/enumerable/mode_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/none_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/nonuniq_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/occur_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/one_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/op_pow_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/partition_by_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/permute_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/probability_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/project_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/self/combinations_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/self/cross_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/enumerable/to_h_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/uniq_by_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/enumerable/where_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/file/self/append_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/file/self/create_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/file/self/open_as_string_rb.html +0 -118
- data/web/doc/api/core/files/lib/facets/core/file/self/read_binary_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/file/self/read_list_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/file/self/sanitize_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/file/self/split_all_rb.html +0 -101
- data/web/doc/api/core/files/lib/facets/core/file/self/write_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/fileutils/head_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/fileutils/safe_ln_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/fileutils/slice_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/fileutils/split_all_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/fileutils/tail_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/fileutils/wc_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/fileutils/whereis_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/fileutils/which_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/float/approx_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/float/round_at_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/float/round_off_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/float/round_to_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/gem/self/active_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/gem/self/gemdir_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/gem/self/gempath_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/gem/self/gemspec_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/alias_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/assert_has_keys_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/assert_has_only_keys_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/at_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/collate_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/delete_unless_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/each_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/each_with_index_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/hash/each_with_key_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/graph_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/has_keys_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/has_only_keys_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/inverse_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/join_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/keys_to_iv_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/keys_to_s_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/keys_to_sym_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/op_fetch_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/op_lshift_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/op_store_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/hash/rand_key_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/rand_pair_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/rand_value_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/replace_each_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/self/zipnew_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/shuffle_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/slice_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/stringify_keys_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/hash/swap_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/swapkey_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/symoblize_keys_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/hash/to_h_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/to_ostruct_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/hash/to_ostruct_recurse_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/hash/to_proc_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/traverse_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/update_each_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/update_keys_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/update_values_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/hash/variablize_keys_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/hash/weave_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/inflect_rb.html +0 -117
- data/web/doc/api/core/files/lib/facets/core/integer/even_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/integer/fac_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/integer/fact_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/integer/factorial_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/integer/multiple_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/integer/odd_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/integer/ordinal_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/integer/times_collect_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/integer/times_map_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/__DIR___rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/__class___rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/__get___rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/__self___rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/__set___rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/adhoc_rb.html +0 -99
- data/web/doc/api/core/files/lib/facets/core/kernel/as_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/assign_from_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/assign_with_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/kernel/autoreload_files_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/autoreload_glob_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/autoreload_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/bool_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/bug_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/cache_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/call_stack_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/called_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/complete_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/constant_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/copy_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/deep_copy_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/demo_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/eigenclass_rb.html +0 -103
- data/web/doc/api/core/files/lib/facets/core/kernel/false_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/fn_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/generate_method_name_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/get_by_id_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/here_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/in_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/instance_assign_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/instvar_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/is_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/maybe_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/me_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/metaclass_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/method_name_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/method_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/methodname_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/methods_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/nack_rb.html +0 -98
- data/web/doc/api/core/files/lib/facets/core/kernel/new_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/object_class_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/object_hexid_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/op_esc_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/own_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/p_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/pp_exception_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/require_all_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/require_esc_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/require_facet_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/require_local_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/resc_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/respond_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/returning_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/send_as_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/set_from_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/set_with_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/silence_warnings_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/silently_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/singleton_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/superior_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/supermethod_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/this_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/to_b_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/to_bool_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/true_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/unuri_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/uri_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/kernel/val_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/warn_with_line_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/with_accessor_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/kernel/with_reader_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/kernel/with_writer_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/logger/format_message_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/logger/format_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/matchdata/match_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/matchdata/matchset_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/matchdata/matchtree_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/abstract_rb.html +0 -105
- data/web/doc/api/core/files/lib/facets/core/module/alias_module_function_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/ancestor_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/attr_query_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/attr_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/attr_setter_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/attr_tester_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/attr_validator_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/basename_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/by_name_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/class_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/clone_removing_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/module/clone_renaming_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/module/clone_using_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/dirname_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/equate_on_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/generate_instance_method_name_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/include_as_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/inherit_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/initializer_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/instance_methods_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/integrate_rb.html +0 -104
- data/web/doc/api/core/files/lib/facets/core/module/is_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/memoize_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/modspace_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/module/namespace_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/nesting_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/nodef_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/on_included_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/redef_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/redefine_method_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/redirect_method_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/redirect_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/remove_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/rename_method_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/rename_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/revisal_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/module/shadow_all_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/shadow_method_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/singleton_to_module_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/sort_on_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/this_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/module/wrap_method_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/module/wrap_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/nil_as_emptiness_rb.html +0 -116
- data/web/doc/api/core/files/lib/facets/core/nilclass/blank_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/nilclass/empty_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/nilclass/include_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/nilclass/length_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/nilclass/op_cmp_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/nilclass/op_fetch_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/nilclass/size_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/nilclass/succ_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/nilclass/to_h_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/numeric/approx_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/numeric/ceil_multiple_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/numeric/pred_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/numeric/succ_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/numeric/to_b_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/ostruct/__merge___rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/ostruct/__table___rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/ostruct/__update___rb.html +0 -98
- data/web/doc/api/core/files/lib/facets/core/ostruct/instance_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/ostruct/op_fetch_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/ostruct/op_store_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/ostruct/to_h_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/ostruct_rb.html +0 -102
- data/web/doc/api/core/files/lib/facets/core/pathname/ascend_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/pathname/descend_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/proc/compose_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/proc/op_mul_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/proc/to_method_rb.html +0 -133
- data/web/doc/api/core/files/lib/facets/core/random_rb.html +0 -111
- data/web/doc/api/core/files/lib/facets/core/range/to_r_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/range/to_range_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/range/umbrella_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/range/within_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/regexp/arity_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/regexp/to_re_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/regexp/to_regexp_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/align_center_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/align_left_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/string/align_right_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/string/at_rand_rb.html +0 -98
- data/web/doc/api/core/files/lib/facets/core/string/at_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/basename_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/blank_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/bracket_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/brief_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/bytes_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/camelcase_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/camelize_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/capitalized_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/chars_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/cmp_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/demodulize_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/dequote_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/downcase_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/dresner_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/each_char_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/each_word_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/ends_with_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/string/first_char_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/first_rb.html +0 -98
- data/web/doc/api/core/files/lib/facets/core/string/fold_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/format_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/frequency_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/string/humanize_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/indent_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/index_all_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/last_char_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/last_rb.html +0 -98
- data/web/doc/api/core/files/lib/facets/core/string/line_wrap_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/lines_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/lowercase_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/margin_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/methodize_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/modulize_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/mscan_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/natcmp_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/nchar_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/ordinal_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/pathize_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/plural_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/string/pop_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/pot_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/probability_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/string/pull_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/push_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/quote_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/rand_byte_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/rand_index_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/range_all_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/range_of_line_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/range_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/regesc_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/self/format_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/self/interpolate_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/self/patterns_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/self/rand_letter_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/self/random_rb.html +0 -99
- data/web/doc/api/core/files/lib/facets/core/string/shatter_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/shell_escape_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/shift_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/shuffle_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/similarity_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/singular_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/soundex_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/starts_with_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/succ_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/tab_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/string/tabto_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/string/to_a_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/to_b_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/to_const_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/to_date_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/string/to_proc_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/to_re_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/to_rx_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/string/to_time_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/unbracket_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/underscore_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/unix_crypt_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/unpack_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/unshift_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/upcase_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/uppercase_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/string/whitespace_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/string/word_filter_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/word_wrap_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string/words_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/string_as_array_rb.html +0 -109
- data/web/doc/api/core/files/lib/facets/core/symbol/camelcase_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/symbol/camelize_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/symbol/capitalize_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/symbol/capitalized_rb.html +0 -97
- data/web/doc/api/core/files/lib/facets/core/symbol/downcase_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/symbol/not_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/symbol/pad_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/symbol/succ_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/symbol/to_const_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/symbol/to_proc_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/symbol/to_str_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/symbol/underscore_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/symbol/upcase_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/time/change_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/time/elapse_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/time/self/days_extrema_rb.html +0 -114
- data/web/doc/api/core/files/lib/facets/core/time/self/stamp_rb.html +0 -100
- data/web/doc/api/core/files/lib/facets/core/time/stamp_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/time/to_date_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/time/to_s_rb.html +0 -96
- data/web/doc/api/core/files/lib/facets/core/time/to_time_rb.html +0 -92
- data/web/doc/api/core/files/lib/facets/core/unboundmethod/name_rb.html +0 -92
- data/web/doc/api/core/fr_class_index.html +0 -80
- data/web/doc/api/core/fr_file_index.html +0 -521
- data/web/doc/api/core/fr_method_index.html +0 -555
- data/web/doc/api/core/index.html +0 -26
- data/web/doc/api/core/rdoc-style.css +0 -175
- data/web/doc/api/more/classes/Annotation.html +0 -258
- data/web/doc/api/more/classes/Array.html +0 -362
- data/web/doc/api/more/classes/Aspect.html +0 -159
- data/web/doc/api/more/classes/Aspects.html +0 -240
- data/web/doc/api/more/classes/Aspects/ClassMethods.html +0 -254
- data/web/doc/api/more/classes/Association.html +0 -289
- data/web/doc/api/more/classes/BBCode.html +0 -531
- data/web/doc/api/more/classes/BasicObject.html +0 -260
- data/web/doc/api/more/classes/BasicObject/Self.html +0 -142
- data/web/doc/api/more/classes/BinaryReader.html +0 -535
- data/web/doc/api/more/classes/BinaryReader/ByteOrder.html +0 -225
- data/web/doc/api/more/classes/BuilderObject.html +0 -248
- data/web/doc/api/more/classes/Class.html +0 -201
- data/web/doc/api/more/classes/Client.html +0 -1251
- data/web/doc/api/more/classes/Cloneable.html +0 -133
- data/web/doc/api/more/classes/Console.html +0 -105
- data/web/doc/api/more/classes/Console/ANSICode.html +0 -488
- data/web/doc/api/more/classes/Console/Command.html +0 -275
- data/web/doc/api/more/classes/Console/ProgressBar.html +0 -640
- data/web/doc/api/more/classes/Coroutine.html +0 -284
- data/web/doc/api/more/classes/Crypt.html +0 -270
- data/web/doc/api/more/classes/DebugSocket.html +0 -242
- data/web/doc/api/more/classes/Dictionary.html +0 -974
- data/web/doc/api/more/classes/Downloader.html +0 -515
- data/web/doc/api/more/classes/Downloader/Checksum.html +0 -96
- data/web/doc/api/more/classes/Downloader/Mirror.html +0 -134
- data/web/doc/api/more/classes/Elementor.html +0 -202
- data/web/doc/api/more/classes/Enumerable.html +0 -86
- data/web/doc/api/more/classes/EnumerablePass.html +0 -217
- data/web/doc/api/more/classes/Expirable.html +0 -197
- data/web/doc/api/more/classes/FalseClass.html +0 -119
- data/web/doc/api/more/classes/FileList.html +0 -971
- data/web/doc/api/more/classes/Float.html +0 -140
- data/web/doc/api/more/classes/FloatString.html +0 -413
- data/web/doc/api/more/classes/Functor.html +0 -203
- data/web/doc/api/more/classes/HTMLBuilder.html +0 -132
- data/web/doc/api/more/classes/HTMLHelper.html +0 -189
- data/web/doc/api/more/classes/HTTP.html +0 -154
- data/web/doc/api/more/classes/HTTP/BadResponseError.html +0 -94
- data/web/doc/api/more/classes/HTTP/Error.html +0 -96
- data/web/doc/api/more/classes/HTTP/Message.html +0 -633
- data/web/doc/api/more/classes/HTTP/Message/Body.html +0 -299
- data/web/doc/api/more/classes/HTTP/Message/Headers.html +0 -641
- data/web/doc/api/more/classes/HTTP/Status.html +0 -148
- data/web/doc/api/more/classes/HTTPAccess.html +0 -115
- data/web/doc/api/more/classes/Hash.html +0 -257
- data/web/doc/api/more/classes/HashBuilder.html +0 -216
- data/web/doc/api/more/classes/Heap.html +0 -535
- data/web/doc/api/more/classes/Heap/EmptyHeapException.html +0 -92
- data/web/doc/api/more/classes/Heap/Max.html +0 -133
- data/web/doc/api/more/classes/Heap/Min.html +0 -133
- data/web/doc/api/more/classes/IORedirect.html +0 -225
- data/web/doc/api/more/classes/Integer.html +0 -298
- data/web/doc/api/more/classes/Interval.html +0 -853
- data/web/doc/api/more/classes/InvalidNackError.html +0 -117
- data/web/doc/api/more/classes/JSON.html +0 -410
- data/web/doc/api/more/classes/JSON/Parser.html +0 -374
- data/web/doc/api/more/classes/JSON/State.html +0 -280
- data/web/doc/api/more/classes/Kernel.html +0 -400
- data/web/doc/api/more/classes/LRUCache.html +0 -461
- data/web/doc/api/more/classes/LRUCache/Item.html +0 -114
- data/web/doc/api/more/classes/LRUCache/Sentinel.html +0 -102
- data/web/doc/api/more/classes/Lazy.html +0 -96
- data/web/doc/api/more/classes/Lazy/Future.html +0 -100
- data/web/doc/api/more/classes/Lazy/Promise.html +0 -114
- data/web/doc/api/more/classes/Lazy/PromiseSafe.html +0 -99
- data/web/doc/api/more/classes/Lisp.html +0 -846
- data/web/doc/api/more/classes/Lisp/DottedPair.html +0 -289
- data/web/doc/api/more/classes/Lisp/Format.html +0 -147
- data/web/doc/api/more/classes/Math.html +0 -110
- data/web/doc/api/more/classes/Math/Constants.html +0 -691
- data/web/doc/api/more/classes/Math/Constants/CGS.html +0 -584
- data/web/doc/api/more/classes/Method.html +0 -170
- data/web/doc/api/more/classes/Method/Probe.html +0 -267
- data/web/doc/api/more/classes/Mock.html +0 -276
- data/web/doc/api/more/classes/Module.html +0 -691
- data/web/doc/api/more/classes/Multiton.html +0 -256
- data/web/doc/api/more/classes/NackClass.html +0 -245
- data/web/doc/api/more/classes/NilClass.html +0 -238
- data/web/doc/api/more/classes/NullClass.html +0 -202
- data/web/doc/api/more/classes/Numeric.html +0 -1104
- data/web/doc/api/more/classes/ORMSupport.html +0 -357
- data/web/doc/api/more/classes/Object.html +0 -323
- data/web/doc/api/more/classes/OpenCascade.html +0 -230
- data/web/doc/api/more/classes/OpenObject.html +0 -552
- data/web/doc/api/more/classes/PQueue.html +0 -471
- data/web/doc/api/more/classes/PathList.html +0 -162
- data/web/doc/api/more/classes/PathList/Finder.html +0 -137
- data/web/doc/api/more/classes/Pool.html +0 -207
- data/web/doc/api/more/classes/Proc.html +0 -140
- data/web/doc/api/more/classes/PromoteSelf.html +0 -138
- data/web/doc/api/more/classes/Quaternion.html +0 -1497
- data/web/doc/api/more/classes/REXMLBuilder.html +0 -357
- data/web/doc/api/more/classes/REXMLBuilder/REXMLUtil.html +0 -396
- data/web/doc/api/more/classes/Recorder.html +0 -208
- data/web/doc/api/more/classes/Reference.html +0 -201
- data/web/doc/api/more/classes/RubyOneLiners.html +0 -139
- data/web/doc/api/more/classes/RubyTals.html +0 -316
- data/web/doc/api/more/classes/SSLSocketWrap.html +0 -410
- data/web/doc/api/more/classes/Semaphore.html +0 -264
- data/web/doc/api/more/classes/SimpleStringIO.html +0 -139
- data/web/doc/api/more/classes/Snapshot.html +0 -191
- data/web/doc/api/more/classes/StateMachine.html +0 -248
- data/web/doc/api/more/classes/StateParser.html +0 -276
- data/web/doc/api/more/classes/StateParser/Constants.html +0 -109
- data/web/doc/api/more/classes/StateParser/Marker.html +0 -269
- data/web/doc/api/more/classes/StateParser/State.html +0 -448
- data/web/doc/api/more/classes/StaticHash.html +0 -144
- data/web/doc/api/more/classes/String.html +0 -278
- data/web/doc/api/more/classes/StringIO.html +0 -123
- data/web/doc/api/more/classes/Struct.html +0 -134
- data/web/doc/api/more/classes/Symbol.html +0 -116
- data/web/doc/api/more/classes/SyncArray.html +0 -131
- data/web/doc/api/more/classes/SyncHash.html +0 -135
- data/web/doc/api/more/classes/SyncHash/Delegator.html +0 -213
- data/web/doc/api/more/classes/SyncHash/Inheritor.html +0 -213
- data/web/doc/api/more/classes/System.html +0 -1055
- data/web/doc/api/more/classes/TSort.html +0 -123
- data/web/doc/api/more/classes/TagIterator.html +0 -706
- data/web/doc/api/more/classes/Task.html +0 -237
- data/web/doc/api/more/classes/Task/Graph.html +0 -165
- data/web/doc/api/more/classes/Taskable.html +0 -300
- data/web/doc/api/more/classes/Time.html +0 -746
- data/web/doc/api/more/classes/Timer.html +0 -471
- data/web/doc/api/more/classes/Timer/Dummy.html +0 -141
- data/web/doc/api/more/classes/TracePoint.html +0 -453
- data/web/doc/api/more/classes/TrueClass.html +0 -118
- data/web/doc/api/more/classes/Tuple.html +0 -861
- data/web/doc/api/more/classes/URI.html +0 -107
- data/web/doc/api/more/classes/Uninheritable.html +0 -130
- data/web/doc/api/more/classes/Units.html +0 -191
- data/web/doc/api/more/classes/Units/Config.html +0 -120
- data/web/doc/api/more/classes/Units/Converter.html +0 -808
- data/web/doc/api/more/classes/Units/Converter/ExchangeRate.html +0 -155
- data/web/doc/api/more/classes/Units/Converter/ExchangeRate/CachedXMethods.html +0 -143
- data/web/doc/api/more/classes/Units/Converter/ExchangeRate/XMethods.html +0 -197
- data/web/doc/api/more/classes/Units/Unit.html +0 -434
- data/web/doc/api/more/classes/Units/Value.html +0 -331
- data/web/doc/api/more/classes/ValueHolder.html +0 -167
- data/web/doc/api/more/classes/WebAgent.html +0 -103
- data/web/doc/api/more/classes/WebAgent/Cookie.html +0 -513
- data/web/doc/api/more/classes/WebAgent/CookieManager.html +0 -515
- data/web/doc/api/more/classes/WebAgent/CookieManager/Error.html +0 -96
- data/web/doc/api/more/classes/WebAgent/CookieManager/ErrorOverrideOK.html +0 -94
- data/web/doc/api/more/classes/WebAgent/CookieManager/NoDotError.html +0 -94
- data/web/doc/api/more/classes/WebAgent/CookieManager/SpecialError.html +0 -94
- data/web/doc/api/more/classes/WebAgent/CookieUtils.html +0 -171
- data/web/doc/api/more/classes/XMLBuilder.html +0 -132
- data/web/doc/api/more/classes/XMLHelper.html +0 -428
- data/web/doc/api/more/classes/XOXO.html +0 -252
- data/web/doc/api/more/classes/YAMLStruct.html +0 -166
- data/web/doc/api/more/created.rid +0 -1
- data/web/doc/api/more/files/AUTHORS.html +0 -206
- data/web/doc/api/more/files/COPYING.html +0 -517
- data/web/doc/api/more/files/README.html +0 -389
- data/web/doc/api/more/files/WARNING.html +0 -151
- data/web/doc/api/more/files/lib/facets/more/annattr_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/annotation_rb.html +0 -118
- data/web/doc/api/more/files/lib/facets/more/ansicode_rb.html +0 -128
- data/web/doc/api/more/files/lib/facets/more/aspects_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/association_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/basicobject_rb.html +0 -129
- data/web/doc/api/more/files/lib/facets/more/bbcode_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/binaryreader_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/bitmask_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/blankslate_rb.html +0 -113
- data/web/doc/api/more/files/lib/facets/more/builderobject_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/bytes_rb.html +0 -131
- data/web/doc/api/more/files/lib/facets/more/classinherit_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/classmethods_rb.html +0 -121
- data/web/doc/api/more/files/lib/facets/more/cloneable_rb.html +0 -132
- data/web/doc/api/more/files/lib/facets/more/consoleapp_rb.html +0 -131
- data/web/doc/api/more/files/lib/facets/more/cookie_rb.html +0 -133
- data/web/doc/api/more/files/lib/facets/more/coroutine_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/crypt_rb.html +0 -146
- data/web/doc/api/more/files/lib/facets/more/dictionary_rb.html +0 -123
- data/web/doc/api/more/files/lib/facets/more/downloader_rb.html +0 -124
- data/web/doc/api/more/files/lib/facets/more/elementor_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/enumerablepass_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/expirable_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/filelist_rb.html +0 -128
- data/web/doc/api/more/files/lib/facets/more/floatstring_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/functor_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/hashbuilder_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/heap_rb.html +0 -131
- data/web/doc/api/more/files/lib/facets/more/htmlbuilder_rb.html +0 -116
- data/web/doc/api/more/files/lib/facets/more/htmlhelper_rb.html +0 -119
- data/web/doc/api/more/files/lib/facets/more/http_rb.html +0 -116
- data/web/doc/api/more/files/lib/facets/more/httpaccess_rb.html +0 -137
- data/web/doc/api/more/files/lib/facets/more/inheritor_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/interval_rb.html +0 -120
- data/web/doc/api/more/files/lib/facets/more/ioredirect_rb.html +0 -116
- data/web/doc/api/more/files/lib/facets/more/json_rb.html +0 -141
- data/web/doc/api/more/files/lib/facets/more/lazy_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/lisp_format_rb.html +0 -129
- data/web/doc/api/more/files/lib/facets/more/lisp_rb.html +0 -119
- data/web/doc/api/more/files/lib/facets/more/lrucache_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/mathconstants_rb.html +0 -121
- data/web/doc/api/more/files/lib/facets/more/methodprobe_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/mock_rb.html +0 -208
- data/web/doc/api/more/files/lib/facets/more/multipliers_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/multiton_rb.html +0 -114
- data/web/doc/api/more/files/lib/facets/more/nackclass_rb.html +0 -151
- data/web/doc/api/more/files/lib/facets/more/nilcomparable_rb.html +0 -118
- data/web/doc/api/more/files/lib/facets/more/nullclass_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/one_rb.html +0 -158
- data/web/doc/api/more/files/lib/facets/more/opencascade_rb.html +0 -129
- data/web/doc/api/more/files/lib/facets/more/openobject_rb.html +0 -120
- data/web/doc/api/more/files/lib/facets/more/orderedhash_rb.html +0 -113
- data/web/doc/api/more/files/lib/facets/more/ormsupport_rb.html +0 -125
- data/web/doc/api/more/files/lib/facets/more/overload_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/paramix_rb.html +0 -118
- data/web/doc/api/more/files/lib/facets/more/pathlist_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/pool_rb.html +0 -120
- data/web/doc/api/more/files/lib/facets/more/pqueue_rb.html +0 -122
- data/web/doc/api/more/files/lib/facets/more/preinitialize_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/progressbar_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/promoteself_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/quaternion_rb.html +0 -150
- data/web/doc/api/more/files/lib/facets/more/recorder_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/reference_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/rexmlbuilder_rb.html +0 -116
- data/web/doc/api/more/files/lib/facets/more/rtals_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/semaphore_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/snapshot_rb.html +0 -121
- data/web/doc/api/more/files/lib/facets/more/stateparser_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/statichash_rb.html +0 -133
- data/web/doc/api/more/files/lib/facets/more/syncarray_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/synchash_rb.html +0 -115
- data/web/doc/api/more/files/lib/facets/more/system_rb.html +0 -123
- data/web/doc/api/more/files/lib/facets/more/tagiterator_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/taskable_rb.html +0 -118
- data/web/doc/api/more/files/lib/facets/more/timer_rb.html +0 -127
- data/web/doc/api/more/files/lib/facets/more/times_rb.html +0 -127
- data/web/doc/api/more/files/lib/facets/more/tracepoint_rb.html +0 -131
- data/web/doc/api/more/files/lib/facets/more/tuple_rb.html +0 -122
- data/web/doc/api/more/files/lib/facets/more/typecast_rb.html +0 -124
- data/web/doc/api/more/files/lib/facets/more/uninheritable_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/units_rb.html +0 -118
- data/web/doc/api/more/files/lib/facets/more/xmlbuilder_rb.html +0 -116
- data/web/doc/api/more/files/lib/facets/more/xmlhelper_rb.html +0 -111
- data/web/doc/api/more/files/lib/facets/more/xoxo_rb.html +0 -125
- data/web/doc/api/more/files/lib/facets/more/yamlstruct_rb.html +0 -123
- data/web/doc/api/more/fr_class_index.html +0 -197
- data/web/doc/api/more/fr_file_index.html +0 -136
- data/web/doc/api/more/fr_method_index.html +0 -1290
- data/web/doc/api/more/index.html +0 -26
- data/web/doc/api/more/rdoc-style.css +0 -175
- data/web/images/best_jupiter_cass.jpg +0 -0
- data/web/images/super-friends-volume-two-20050606010933166-001.jpg +0 -0
@@ -1,140 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Class: Proc</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Class</span><br />Proc</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing=0 cellpadding=2>
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../files/lib/facets/more/openobject_rb.html">lib/facets/more/openobject.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
<tr>
|
64
|
-
<td>Parent:</td>
|
65
|
-
<td>
|
66
|
-
<a href="Object.html">
|
67
|
-
Object
|
68
|
-
</a>
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</td>
|
73
|
-
</tr>
|
74
|
-
</table>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
<div id="content">
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
<div class="sectiontitle">Methods</div>
|
84
|
-
<ul>
|
85
|
-
<li><a href="#M000406">to_openobject</a></li>
|
86
|
-
</ul>
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
<div class="sectiontitle">Public Instance methods</div>
|
94
|
-
<div class="method">
|
95
|
-
<div class="title">
|
96
|
-
<a name="M000406"></a><b>to_openobject</b>()
|
97
|
-
</div>
|
98
|
-
<div class="description">
|
99
|
-
<p>
|
100
|
-
Translates a <a href="Proc.html">Proc</a> into an <a
|
101
|
-
href="OpenObject.html">OpenObject</a>. By droping an <a
|
102
|
-
href="OpenObject.html">OpenObject</a> into the <a
|
103
|
-
href="Proc.html">Proc</a>, the resulting assignments incured as the
|
104
|
-
procedure is evaluated produce the <a
|
105
|
-
href="OpenObject.html">OpenObject</a>. This technique is simlar to that of
|
106
|
-
MethodProbe.
|
107
|
-
</p>
|
108
|
-
<pre>
|
109
|
-
p = lambda { |x|
|
110
|
-
x.word = "Hello"
|
111
|
-
}
|
112
|
-
o = p.to_openobject
|
113
|
-
o.word #=> "Hello"
|
114
|
-
</pre>
|
115
|
-
<p>
|
116
|
-
NOTE The <a href="Proc.html">Proc</a> must have an arity of one —no
|
117
|
-
more and no less.
|
118
|
-
</p>
|
119
|
-
</div>
|
120
|
-
<div class="sourcecode">
|
121
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000406_source')" id="l_M000406_source">show source</a> ]</p>
|
122
|
-
<div id="M000406_source" class="dyn-source">
|
123
|
-
<pre>
|
124
|
-
<span class="ruby-comment cmt"># File lib/facets/more/openobject.rb, line 201</span>
|
125
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_openobject</span>
|
126
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'bad arity for converting Proc to openobject'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">arity</span> <span class="ruby-operator">!=</span> <span class="ruby-value">1</span>
|
127
|
-
<span class="ruby-identifier">o</span> = <span class="ruby-constant">OpenObject</span>.<span class="ruby-identifier">new</span>
|
128
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">call</span>( <span class="ruby-identifier">o</span> )
|
129
|
-
<span class="ruby-identifier">o</span>
|
130
|
-
<span class="ruby-keyword kw">end</span>
|
131
|
-
</pre>
|
132
|
-
</div>
|
133
|
-
</div>
|
134
|
-
</div>
|
135
|
-
</div>
|
136
|
-
|
137
|
-
</div>
|
138
|
-
|
139
|
-
</body>
|
140
|
-
</html>
|
@@ -1,138 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Module: PromoteSelf</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Module</span><br />PromoteSelf</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing=0 cellpadding=2>
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../files/lib/facets/more/promoteself_rb.html">lib/facets/more/promoteself.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
</table>
|
64
|
-
</td>
|
65
|
-
</tr>
|
66
|
-
</table>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
<div id="content">
|
71
|
-
|
72
|
-
<div class="description"><h1><a href="PromoteSelf.html">PromoteSelf</a></h1>
|
73
|
-
<p>
|
74
|
-
<a href="PromoteSelf.html">PromoteSelf</a> converts a module’s class
|
75
|
-
methods into instance methods such that the first parameter is passed self
|
76
|
-
at the instance level. This promotes DRY programming when wishing to offer
|
77
|
-
both an inheritable and a module callable procedure.
|
78
|
-
</p>
|
79
|
-
<h2>Usage</h2>
|
80
|
-
<pre>
|
81
|
-
module MyModule
|
82
|
-
extend PromoteSelf
|
83
|
-
def self.jumble( obj, arg )
|
84
|
-
obj + arg
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
class String
|
89
|
-
include MyModule
|
90
|
-
end
|
91
|
-
|
92
|
-
MyModule.jumble( "Try", "Me" ) #=> "TryMe"
|
93
|
-
|
94
|
-
"Try".jumble( "Me" ) #=> 'TryMe'
|
95
|
-
</pre>
|
96
|
-
</div>
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
<div class="sectiontitle">Methods</div>
|
101
|
-
<ul>
|
102
|
-
<li><a href="#M001041">singleton_method_added</a></li>
|
103
|
-
</ul>
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
<div class="sectiontitle">Public Instance methods</div>
|
111
|
-
<div class="method">
|
112
|
-
<div class="title">
|
113
|
-
<a name="M001041"></a><b>singleton_method_added</b>( meth )
|
114
|
-
</div>
|
115
|
-
<div class="sourcecode">
|
116
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M001041_source')" id="l_M001041_source">show source</a> ]</p>
|
117
|
-
<div id="M001041_source" class="dyn-source">
|
118
|
-
<pre>
|
119
|
-
<span class="ruby-comment cmt"># File lib/facets/more/promoteself.rb, line 49</span>
|
120
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">singleton_method_added</span>( <span class="ruby-identifier">meth</span> )
|
121
|
-
<span class="ruby-identifier">d</span> = <span class="ruby-node">%{
|
122
|
-
def #{meth}(*args)
|
123
|
-
#{self.name}.#{meth}(self,*args)
|
124
|
-
end
|
125
|
-
}</span>
|
126
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-identifier">d</span>
|
127
|
-
<span class="ruby-identifier">singleton_method_added_promoteself</span>( <span class="ruby-identifier">meth</span> ) <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">defined?</span>(<span class="ruby-identifier">singleton_method_added_promoteself</span>)
|
128
|
-
<span class="ruby-keyword kw">end</span>
|
129
|
-
</pre>
|
130
|
-
</div>
|
131
|
-
</div>
|
132
|
-
</div>
|
133
|
-
</div>
|
134
|
-
|
135
|
-
</div>
|
136
|
-
|
137
|
-
</body>
|
138
|
-
</html>
|
@@ -1,1497 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Class: Quaternion</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Class</span><br />Quaternion</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing=0 cellpadding=2>
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../files/lib/facets/more/quaternion_rb.html">lib/facets/more/quaternion.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
<tr>
|
64
|
-
<td>Parent:</td>
|
65
|
-
<td>
|
66
|
-
<a href="Numeric.html">
|
67
|
-
Numeric
|
68
|
-
</a>
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</td>
|
73
|
-
</tr>
|
74
|
-
</table>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
<div id="content">
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
<div class="sectiontitle">Methods</div>
|
84
|
-
<ul>
|
85
|
-
<li><a href="#M000576">%</a></li>
|
86
|
-
<li><a href="#M000566">*</a></li>
|
87
|
-
<li><a href="#M000585">**</a></li>
|
88
|
-
<li><a href="#M000564">+</a></li>
|
89
|
-
<li><a href="#M000565">-</a></li>
|
90
|
-
<li><a href="#M000569">/</a></li>
|
91
|
-
<li><a href="#M000562"><=></a></li>
|
92
|
-
<li><a href="#M000563">==</a></li>
|
93
|
-
<li><a href="#M000545">abs</a></li>
|
94
|
-
<li><a href="#M000544">abs2</a></li>
|
95
|
-
<li><a href="#M000594">acos</a></li>
|
96
|
-
<li><a href="#M000535">amplitude</a></li>
|
97
|
-
<li><a href="#M000538">arg1</a></li>
|
98
|
-
<li><a href="#M000539">arg2</a></li>
|
99
|
-
<li><a href="#M000540">arg3</a></li>
|
100
|
-
<li><a href="#M000593">asin</a></li>
|
101
|
-
<li><a href="#M000595">atan</a></li>
|
102
|
-
<li><a href="#M000561">coerce</a></li>
|
103
|
-
<li><a href="#M000547">conjugate</a></li>
|
104
|
-
<li><a href="#M000591">cos</a></li>
|
105
|
-
<li><a href="#M000588">cosh</a></li>
|
106
|
-
<li><a href="#M000568">cross_product</a></li>
|
107
|
-
<li><a href="#M000572">divmod</a></li>
|
108
|
-
<li><a href="#M000573">divmod_D4</a></li>
|
109
|
-
<li><a href="#M000567">dot_product</a></li>
|
110
|
-
<li><a href="#M000583">exp</a></li>
|
111
|
-
<li><a href="#M000581">gcd</a></li>
|
112
|
-
<li><a href="#M000532">generic?</a></li>
|
113
|
-
<li><a href="#M000596">hash</a></li>
|
114
|
-
<li><a href="#M000526">image</a></li>
|
115
|
-
<li><a href="#M000597">inspect</a></li>
|
116
|
-
<li><a href="#M000548">inverse</a></li>
|
117
|
-
<li><a href="#M000550">is_complex?</a></li>
|
118
|
-
<li><a href="#M000551">is_quaternion?</a></li>
|
119
|
-
<li><a href="#M000549">is_real?</a></li>
|
120
|
-
<li><a href="#M000557">is_unit_vector?</a></li>
|
121
|
-
<li><a href="#M000553">is_vector?</a></li>
|
122
|
-
<li><a href="#M000536">latitude</a></li>
|
123
|
-
<li><a href="#M000571">ldiv</a></li>
|
124
|
-
<li><a href="#M000574">ldivmod</a></li>
|
125
|
-
<li><a href="#M000575">ldivmod_D4</a></li>
|
126
|
-
<li><a href="#M000579">lmod</a></li>
|
127
|
-
<li><a href="#M000580">lmod_D4</a></li>
|
128
|
-
<li><a href="#M000584">log</a></li>
|
129
|
-
<li><a href="#M000537">longitude</a></li>
|
130
|
-
<li><a href="#M000546">magnitude</a></li>
|
131
|
-
<li><a href="#M000533">new</a></li>
|
132
|
-
<li><a href="#M000582">orthogonal_split</a></li>
|
133
|
-
<li><a href="#M000534">polar</a></li>
|
134
|
-
<li><a href="#M000541">polar</a></li>
|
135
|
-
<li><a href="#M000570">rdiv</a></li>
|
136
|
-
<li><a href="#M000528">real</a></li>
|
137
|
-
<li><a href="#M000527">real_part</a></li>
|
138
|
-
<li><a href="#M000577">rmod</a></li>
|
139
|
-
<li><a href="#M000578">rmod_D4</a></li>
|
140
|
-
<li><a href="#M000559">rotate</a></li>
|
141
|
-
<li><a href="#M000560">rotate_angle</a></li>
|
142
|
-
<li><a href="#M000558">rotation</a></li>
|
143
|
-
<li><a href="#M000542">round</a></li>
|
144
|
-
<li><a href="#M000543">round_D4</a></li>
|
145
|
-
<li><a href="#M000590">sin</a></li>
|
146
|
-
<li><a href="#M000587">sinh</a></li>
|
147
|
-
<li><a href="#M000586">sqrt</a></li>
|
148
|
-
<li><a href="#M000592">tan</a></li>
|
149
|
-
<li><a href="#M000589">tanh</a></li>
|
150
|
-
<li><a href="#M000531">to_a</a></li>
|
151
|
-
<li><a href="#M000529">to_c</a></li>
|
152
|
-
<li><a href="#M000530">to_c2</a></li>
|
153
|
-
<li><a href="#M000598">to_s</a></li>
|
154
|
-
<li><a href="#M000554">to_v</a></li>
|
155
|
-
<li><a href="#M000556">unit_vector</a></li>
|
156
|
-
<li><a href="#M000552">vector</a></li>
|
157
|
-
<li><a href="#M000555">vector</a></li>
|
158
|
-
</ul>
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
<div class="sectiontitle">Constants</div>
|
164
|
-
<table border='0' cellpadding='5'>
|
165
|
-
<tr valign='top'>
|
166
|
-
<td class="attr-name">Zero</td>
|
167
|
-
<td>=</td>
|
168
|
-
<td class="attr-value">Quaternion(0)</td>
|
169
|
-
</tr>
|
170
|
-
<tr valign='top'>
|
171
|
-
<td class="attr-name">One</td>
|
172
|
-
<td>=</td>
|
173
|
-
<td class="attr-value">Quaternion(1)</td>
|
174
|
-
</tr>
|
175
|
-
<tr valign='top'>
|
176
|
-
<td class="attr-name">I</td>
|
177
|
-
<td>=</td>
|
178
|
-
<td class="attr-value">Quaternion(0,1)</td>
|
179
|
-
</tr>
|
180
|
-
<tr valign='top'>
|
181
|
-
<td class="attr-name">J</td>
|
182
|
-
<td>=</td>
|
183
|
-
<td class="attr-value">Quaternion(0,0,1)</td>
|
184
|
-
</tr>
|
185
|
-
<tr valign='top'>
|
186
|
-
<td class="attr-name">K</td>
|
187
|
-
<td>=</td>
|
188
|
-
<td class="attr-value">Quaternion(0,0,0,1)</td>
|
189
|
-
</tr>
|
190
|
-
</table>
|
191
|
-
|
192
|
-
<div class="sectiontitle">Attributes</div>
|
193
|
-
<table border='0' cellpadding='5'>
|
194
|
-
<tr valign='top'>
|
195
|
-
<td class='attr-rw'>
|
196
|
-
[R]
|
197
|
-
</td>
|
198
|
-
<td class='attr-name'>im</td>
|
199
|
-
<td class='attr-desc'></td>
|
200
|
-
</tr>
|
201
|
-
<tr valign='top'>
|
202
|
-
<td class='attr-rw'>
|
203
|
-
[R]
|
204
|
-
</td>
|
205
|
-
<td class='attr-name'>jm</td>
|
206
|
-
<td class='attr-desc'></td>
|
207
|
-
</tr>
|
208
|
-
<tr valign='top'>
|
209
|
-
<td class='attr-rw'>
|
210
|
-
[R]
|
211
|
-
</td>
|
212
|
-
<td class='attr-name'>km</td>
|
213
|
-
<td class='attr-desc'></td>
|
214
|
-
</tr>
|
215
|
-
<tr valign='top'>
|
216
|
-
<td class='attr-rw'>
|
217
|
-
[R]
|
218
|
-
</td>
|
219
|
-
<td class='attr-name'>re</td>
|
220
|
-
<td class='attr-desc'></td>
|
221
|
-
</tr>
|
222
|
-
</table>
|
223
|
-
|
224
|
-
<div class="sectiontitle">Public Class methods</div>
|
225
|
-
<div class="method">
|
226
|
-
<div class="title">
|
227
|
-
<a name="M000532"></a><b>generic?</b>(other)
|
228
|
-
</div>
|
229
|
-
<div class="sourcecode">
|
230
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000532_source')" id="l_M000532_source">show source</a> ]</p>
|
231
|
-
<div id="M000532_source" class="dyn-source">
|
232
|
-
<pre>
|
233
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 247</span>
|
234
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Quaternion</span><span class="ruby-operator">::</span><span class="ruby-identifier">generic?</span>(<span class="ruby-identifier">other</span>)
|
235
|
-
<span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Complex</span>) <span class="ruby-keyword kw">or</span> <span class="ruby-constant">Complex</span>.<span class="ruby-identifier">generic?</span>(<span class="ruby-identifier">other</span>));
|
236
|
-
<span class="ruby-keyword kw">end</span>
|
237
|
-
</pre>
|
238
|
-
</div>
|
239
|
-
</div>
|
240
|
-
</div>
|
241
|
-
<div class="method">
|
242
|
-
<div class="title">
|
243
|
-
<a name="M000533"></a><b>new</b>(a=0,b=0,c=0,d=0)
|
244
|
-
</div>
|
245
|
-
<div class="sourcecode">
|
246
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000533_source')" id="l_M000533_source">show source</a> ]</p>
|
247
|
-
<div id="M000533_source" class="dyn-source">
|
248
|
-
<pre>
|
249
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 250</span>
|
250
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">a</span>=<span class="ruby-value">0</span>,<span class="ruby-identifier">b</span>=<span class="ruby-value">0</span>,<span class="ruby-identifier">c</span>=<span class="ruby-value">0</span>,<span class="ruby-identifier">d</span>=<span class="ruby-value">0</span>)
|
251
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-node">"non numeric 1st arg `#{a.inspect}'"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">a</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Numeric</span>;
|
252
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-node">"non numeric 2nd arg `#{b.inspect}'"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">b</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Numeric</span>;
|
253
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-node">"non numeric 3rd arg `#{c.inspect}'"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">c</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Numeric</span>;
|
254
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-node">"non numeric 4th arg `#{d.inspect}'"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">d</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Numeric</span>;
|
255
|
-
<span class="ruby-ivar">@re</span>=<span class="ruby-identifier">a</span>; <span class="ruby-ivar">@im</span>=<span class="ruby-identifier">b</span>; <span class="ruby-ivar">@jm</span>=<span class="ruby-identifier">c</span>; <span class="ruby-ivar">@km</span>=<span class="ruby-identifier">d</span>
|
256
|
-
<span class="ruby-keyword kw">end</span>
|
257
|
-
</pre>
|
258
|
-
</div>
|
259
|
-
</div>
|
260
|
-
</div>
|
261
|
-
<div class="method">
|
262
|
-
<div class="title">
|
263
|
-
<a name="M000534"></a><b>polar</b>(m,t1=0,t2=0,t3=0)
|
264
|
-
</div>
|
265
|
-
<div class="sourcecode">
|
266
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000534_source')" id="l_M000534_source">show source</a> ]</p>
|
267
|
-
<div id="M000534_source" class="dyn-source">
|
268
|
-
<pre>
|
269
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 265</span>
|
270
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Quaternion</span><span class="ruby-operator">::</span><span class="ruby-identifier">polar</span>(<span class="ruby-identifier">m</span>,<span class="ruby-identifier">t1</span>=<span class="ruby-value">0</span>,<span class="ruby-identifier">t2</span>=<span class="ruby-value">0</span>,<span class="ruby-identifier">t3</span>=<span class="ruby-value">0</span>)
|
271
|
-
<span class="ruby-comment cmt"># q=</span>
|
272
|
-
<span class="ruby-comment cmt"># m*cos(t1)</span>
|
273
|
-
<span class="ruby-comment cmt"># +m*sin(t1)cos(t2)i</span>
|
274
|
-
<span class="ruby-comment cmt"># +m*sin(t1)sin(t2)cos(t3)j</span>
|
275
|
-
<span class="ruby-comment cmt"># +m*sin(t1)sin(t2)sin(t3)k</span>
|
276
|
-
<span class="ruby-comment cmt"># m is known as the magnitude,</span>
|
277
|
-
<span class="ruby-comment cmt"># t1 is the amplitude(or angle) of the quaternion,</span>
|
278
|
-
<span class="ruby-comment cmt"># t2 and t3 are the latitude (or co-latitude) and longitude respectively.</span>
|
279
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">m</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Array</span>) <span class="ruby-keyword kw">and</span> (<span class="ruby-identifier">m</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">==</span><span class="ruby-value">4</span>); <span class="ruby-identifier">t1</span>=<span class="ruby-identifier">m</span>[<span class="ruby-value">1</span>]; <span class="ruby-identifier">t2</span>=<span class="ruby-identifier">m</span>[<span class="ruby-value">2</span>]; <span class="ruby-identifier">t3</span>=<span class="ruby-identifier">m</span>[<span class="ruby-value">3</span>]; <span class="ruby-identifier">m</span>=<span class="ruby-identifier">m</span>[<span class="ruby-value">0</span>]; <span class="ruby-keyword kw">end</span>;
|
280
|
-
<span class="ruby-identifier">s</span>=<span class="ruby-identifier">m</span>
|
281
|
-
<span class="ruby-identifier">r_part</span>=<span class="ruby-identifier">s</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">cos</span>(<span class="ruby-identifier">t1</span>); <span class="ruby-identifier">s</span>=<span class="ruby-identifier">s</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">sin</span>(<span class="ruby-identifier">t1</span>)
|
282
|
-
<span class="ruby-identifier">i_part</span>=<span class="ruby-identifier">s</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">cos</span>(<span class="ruby-identifier">t2</span>); <span class="ruby-identifier">s</span>=<span class="ruby-identifier">s</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">sin</span>(<span class="ruby-identifier">t2</span>)
|
283
|
-
<span class="ruby-identifier">j_part</span>=<span class="ruby-identifier">s</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">cos</span>(<span class="ruby-identifier">t3</span>); <span class="ruby-identifier">k_part</span>=<span class="ruby-identifier">s</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span>.<span class="ruby-identifier">sin</span>(<span class="ruby-identifier">t3</span>)
|
284
|
-
<span class="ruby-identifier">new</span>(<span class="ruby-identifier">r_part</span>, <span class="ruby-identifier">i_part</span>, <span class="ruby-identifier">j_part</span>, <span class="ruby-identifier">k_part</span>)
|
285
|
-
<span class="ruby-keyword kw">end</span>
|
286
|
-
</pre>
|
287
|
-
</div>
|
288
|
-
</div>
|
289
|
-
</div>
|
290
|
-
<div class="method">
|
291
|
-
<div class="title">
|
292
|
-
<a name="M000558"></a><b>rotation</b>(v,t)
|
293
|
-
</div>
|
294
|
-
<div class="sourcecode">
|
295
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000558_source')" id="l_M000558_source">show source</a> ]</p>
|
296
|
-
<div id="M000558_source" class="dyn-source">
|
297
|
-
<pre>
|
298
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 325</span>
|
299
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Quaternion</span><span class="ruby-operator">::</span><span class="ruby-identifier">rotation</span>(<span class="ruby-identifier">v</span>,<span class="ruby-identifier">t</span>)
|
300
|
-
<span class="ruby-comment cmt"># t-rotatin along the 3-D vector v</span>
|
301
|
-
(<span class="ruby-constant">Quaternion</span><span class="ruby-operator">::</span><span class="ruby-identifier">vector</span>(<span class="ruby-identifier">v</span>).<span class="ruby-identifier">unit_vector</span>) <span class="ruby-operator">*</span> <span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">sin</span>(<span class="ruby-identifier">t</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>) <span class="ruby-operator">+</span> <span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">cos</span>(<span class="ruby-identifier">t</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>)
|
302
|
-
<span class="ruby-keyword kw">end</span>
|
303
|
-
</pre>
|
304
|
-
</div>
|
305
|
-
</div>
|
306
|
-
</div>
|
307
|
-
<div class="method">
|
308
|
-
<div class="title">
|
309
|
-
<a name="M000555"></a><b>vector</b>(v)
|
310
|
-
</div>
|
311
|
-
<div class="sourcecode">
|
312
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000555_source')" id="l_M000555_source">show source</a> ]</p>
|
313
|
-
<div id="M000555_source" class="dyn-source">
|
314
|
-
<pre>
|
315
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 315</span>
|
316
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Quaternion</span><span class="ruby-operator">::</span><span class="ruby-identifier">vector</span>(<span class="ruby-identifier">v</span>)
|
317
|
-
<span class="ruby-comment cmt"># 3-D vector v=[x,y,z]</span>
|
318
|
-
<span class="ruby-constant">Quaternion</span>(<span class="ruby-value">0</span>,<span class="ruby-identifier">v</span>[<span class="ruby-value">0</span>],<span class="ruby-identifier">v</span>[<span class="ruby-value">1</span>],<span class="ruby-identifier">v</span>[<span class="ruby-value">2</span>])
|
319
|
-
<span class="ruby-keyword kw">end</span>
|
320
|
-
</pre>
|
321
|
-
</div>
|
322
|
-
</div>
|
323
|
-
</div>
|
324
|
-
<div class="sectiontitle">Public Instance methods</div>
|
325
|
-
<div class="method">
|
326
|
-
<div class="title">
|
327
|
-
<a name="M000576"></a><b>%</b>(other)
|
328
|
-
</div>
|
329
|
-
<div class="sourcecode">
|
330
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000576_source')" id="l_M000576_source">show source</a> ]</p>
|
331
|
-
<div id="M000576_source" class="dyn-source">
|
332
|
-
<pre>
|
333
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 424</span>
|
334
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">other</span>
|
335
|
-
<span class="ruby-comment cmt"># right mod</span>
|
336
|
-
<span class="ruby-identifier">d</span>,<span class="ruby-identifier">m</span>=<span class="ruby-identifier">divmod</span>(<span class="ruby-identifier">other</span>); <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">m</span>
|
337
|
-
<span class="ruby-keyword kw">end</span>
|
338
|
-
</pre>
|
339
|
-
</div>
|
340
|
-
</div>
|
341
|
-
</div>
|
342
|
-
<div class="method">
|
343
|
-
<div class="title">
|
344
|
-
<a name="M000566"></a><b>*</b>(other)
|
345
|
-
</div>
|
346
|
-
<div class="sourcecode">
|
347
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000566_source')" id="l_M000566_source">show source</a> ]</p>
|
348
|
-
<div id="M000566_source" class="dyn-source">
|
349
|
-
<pre>
|
350
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 370</span>
|
351
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">*</span> (<span class="ruby-identifier">other</span>)
|
352
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Quaternion</span>)
|
353
|
-
<span class="ruby-constant">Quaternion</span>(<span class="ruby-ivar">@re</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">re</span><span class="ruby-operator">-</span><span class="ruby-ivar">@im</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">im</span><span class="ruby-operator">-</span><span class="ruby-ivar">@jm</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">jm</span><span class="ruby-operator">-</span><span class="ruby-ivar">@km</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">km</span>,
|
354
|
-
<span class="ruby-ivar">@re</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">im</span><span class="ruby-operator">+</span><span class="ruby-ivar">@im</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">re</span><span class="ruby-operator">+</span><span class="ruby-ivar">@jm</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">km</span><span class="ruby-operator">-</span><span class="ruby-ivar">@km</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">jm</span>,
|
355
|
-
<span class="ruby-ivar">@re</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">jm</span><span class="ruby-operator">-</span><span class="ruby-ivar">@im</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">km</span><span class="ruby-operator">+</span><span class="ruby-ivar">@jm</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">re</span><span class="ruby-operator">+</span><span class="ruby-ivar">@km</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">im</span>,
|
356
|
-
<span class="ruby-ivar">@re</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">km</span><span class="ruby-operator">+</span><span class="ruby-ivar">@im</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">jm</span><span class="ruby-operator">-</span><span class="ruby-ivar">@jm</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">im</span><span class="ruby-operator">+</span><span class="ruby-ivar">@km</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">re</span>)
|
357
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Complex</span>)
|
358
|
-
<span class="ruby-constant">Quaternion</span>(<span class="ruby-ivar">@re</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">real</span> <span class="ruby-operator">-</span> <span class="ruby-ivar">@im</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">image</span>,
|
359
|
-
<span class="ruby-ivar">@re</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">image</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@im</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">real</span>,
|
360
|
-
<span class="ruby-ivar">@jm</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">real</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@km</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">image</span>,
|
361
|
-
<span class="ruby-ivar">@km</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">real</span> <span class="ruby-operator">-</span> <span class="ruby-ivar">@jm</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">image</span>)
|
362
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">Complex</span>.<span class="ruby-identifier">generic?</span>(<span class="ruby-identifier">other</span>)
|
363
|
-
<span class="ruby-constant">Quaternion</span>(<span class="ruby-ivar">@re</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">other</span>, <span class="ruby-ivar">@im</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">other</span>, <span class="ruby-ivar">@jm</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">other</span>, <span class="ruby-ivar">@km</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">other</span>)
|
364
|
-
<span class="ruby-keyword kw">else</span> <span class="ruby-identifier">x</span> , <span class="ruby-identifier">y</span> = <span class="ruby-identifier">other</span>.<span class="ruby-identifier">coerce</span>(<span class="ruby-keyword kw">self</span>); <span class="ruby-identifier">x</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">y</span>
|
365
|
-
<span class="ruby-keyword kw">end</span>
|
366
|
-
<span class="ruby-keyword kw">end</span>
|
367
|
-
</pre>
|
368
|
-
</div>
|
369
|
-
</div>
|
370
|
-
</div>
|
371
|
-
<div class="method">
|
372
|
-
<div class="title">
|
373
|
-
<a name="M000585"></a><b>**</b>(other)
|
374
|
-
</div>
|
375
|
-
<div class="sourcecode">
|
376
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000585_source')" id="l_M000585_source">show source</a> ]</p>
|
377
|
-
<div id="M000585_source" class="dyn-source">
|
378
|
-
<pre>
|
379
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 475</span>
|
380
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">**</span> <span class="ruby-identifier">other</span>
|
381
|
-
<span class="ruby-comment cmt"># q1^q2 = exp((log q1)*q2)</span>
|
382
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Quaternion</span>); ((<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">log</span>)<span class="ruby-operator">*</span><span class="ruby-identifier">other</span>).<span class="ruby-identifier">exp</span>
|
383
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Complex</span>); ((<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">log</span>)<span class="ruby-operator">*</span><span class="ruby-identifier">other</span>).<span class="ruby-identifier">exp</span>
|
384
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Integer</span>);
|
385
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span><span class="ruby-operator">==</span><span class="ruby-value">0</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-constant">One</span>;
|
386
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">other</span><span class="ruby-operator">></span><span class="ruby-value">0</span>;
|
387
|
-
<span class="ruby-identifier">x</span> = <span class="ruby-keyword kw">self</span>; <span class="ruby-identifier">q</span> = <span class="ruby-identifier">x</span>; <span class="ruby-identifier">n</span> = <span class="ruby-identifier">other</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>
|
388
|
-
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span>
|
389
|
-
<span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">d</span>, <span class="ruby-identifier">m</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">divmod</span>(<span class="ruby-value">2</span>); <span class="ruby-identifier">m</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>); <span class="ruby-identifier">x</span> = <span class="ruby-identifier">x</span><span class="ruby-operator">*</span><span class="ruby-identifier">x</span>; <span class="ruby-identifier">n</span> = <span class="ruby-identifier">d</span>; <span class="ruby-keyword kw">end</span>
|
390
|
-
<span class="ruby-identifier">q</span> <span class="ruby-operator">*=</span> <span class="ruby-identifier">x</span>; <span class="ruby-identifier">n</span> <span class="ruby-operator">-=</span> <span class="ruby-value">1</span>
|
391
|
-
<span class="ruby-keyword kw">end</span>
|
392
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">q</span>
|
393
|
-
<span class="ruby-keyword kw">else</span> <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">inverse</span><span class="ruby-operator">**</span>(<span class="ruby-operator">-</span><span class="ruby-identifier">other</span>)
|
394
|
-
<span class="ruby-keyword kw">end</span>
|
395
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">Quaternion</span><span class="ruby-operator">::</span><span class="ruby-identifier">generic?</span>(<span class="ruby-identifier">other</span>); ((<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">log</span>)<span class="ruby-operator">*</span><span class="ruby-identifier">other</span>).<span class="ruby-identifier">exp</span>
|
396
|
-
<span class="ruby-keyword kw">else</span> <span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span> = <span class="ruby-identifier">other</span>.<span class="ruby-identifier">coerce</span>(<span class="ruby-keyword kw">self</span>); <span class="ruby-identifier">x</span> <span class="ruby-operator">**</span> <span class="ruby-identifier">y</span>
|
397
|
-
<span class="ruby-keyword kw">end</span>;
|
398
|
-
<span class="ruby-keyword kw">end</span>
|
399
|
-
</pre>
|
400
|
-
</div>
|
401
|
-
</div>
|
402
|
-
</div>
|
403
|
-
<div class="method">
|
404
|
-
<div class="title">
|
405
|
-
<a name="M000564"></a><b>+</b>(other)
|
406
|
-
</div>
|
407
|
-
<div class="sourcecode">
|
408
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000564_source')" id="l_M000564_source">show source</a> ]</p>
|
409
|
-
<div id="M000564_source" class="dyn-source">
|
410
|
-
<pre>
|
411
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 350</span>
|
412
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">other</span>)
|
413
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Quaternion</span>)
|
414
|
-
<span class="ruby-constant">Quaternion</span>(<span class="ruby-ivar">@re</span><span class="ruby-operator">+</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">re</span>,<span class="ruby-ivar">@im</span><span class="ruby-operator">+</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">im</span>,<span class="ruby-ivar">@jm</span><span class="ruby-operator">+</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">jm</span>,<span class="ruby-ivar">@km</span><span class="ruby-operator">+</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">km</span>)
|
415
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Complex</span>)
|
416
|
-
<span class="ruby-constant">Quaternion</span>(<span class="ruby-ivar">@re</span><span class="ruby-operator">+</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">real</span>,<span class="ruby-ivar">@im</span><span class="ruby-operator">+</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">image</span>, <span class="ruby-ivar">@jm</span>, <span class="ruby-ivar">@km</span>)
|
417
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">Complex</span>.<span class="ruby-identifier">generic?</span>(<span class="ruby-identifier">other</span>)
|
418
|
-
<span class="ruby-constant">Quaternion</span>(<span class="ruby-ivar">@re</span><span class="ruby-operator">+</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">real</span>,<span class="ruby-ivar">@im</span>, <span class="ruby-ivar">@jm</span>, <span class="ruby-ivar">@km</span>)
|
419
|
-
<span class="ruby-keyword kw">else</span> <span class="ruby-identifier">x</span> , <span class="ruby-identifier">y</span> = <span class="ruby-identifier">other</span>.<span class="ruby-identifier">coerce</span>(<span class="ruby-keyword kw">self</span>); <span class="ruby-identifier">x</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">y</span>
|
420
|
-
<span class="ruby-keyword kw">end</span>
|
421
|
-
<span class="ruby-keyword kw">end</span>
|
422
|
-
</pre>
|
423
|
-
</div>
|
424
|
-
</div>
|
425
|
-
</div>
|
426
|
-
<div class="method">
|
427
|
-
<div class="title">
|
428
|
-
<a name="M000565"></a><b>-</b>(other)
|
429
|
-
</div>
|
430
|
-
<div class="sourcecode">
|
431
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000565_source')" id="l_M000565_source">show source</a> ]</p>
|
432
|
-
<div id="M000565_source" class="dyn-source">
|
433
|
-
<pre>
|
434
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 360</span>
|
435
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</span> (<span class="ruby-identifier">other</span>)
|
436
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Quaternion</span>)
|
437
|
-
<span class="ruby-constant">Quaternion</span>(<span class="ruby-ivar">@re</span><span class="ruby-operator">-</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">re</span>,<span class="ruby-ivar">@im</span><span class="ruby-operator">-</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">im</span>,<span class="ruby-ivar">@jm</span><span class="ruby-operator">-</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">jm</span>,<span class="ruby-ivar">@km</span><span class="ruby-operator">-</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">km</span>)
|
438
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Complex</span>)
|
439
|
-
<span class="ruby-constant">Quaternion</span>(<span class="ruby-ivar">@re</span><span class="ruby-operator">-</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">real</span>,<span class="ruby-ivar">@im</span><span class="ruby-operator">-</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">image</span>, <span class="ruby-ivar">@jm</span>, <span class="ruby-ivar">@km</span>)
|
440
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">Complex</span>.<span class="ruby-identifier">generic?</span>(<span class="ruby-identifier">other</span>)
|
441
|
-
<span class="ruby-constant">Quaternion</span>(<span class="ruby-ivar">@re</span><span class="ruby-operator">-</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">real</span>,<span class="ruby-ivar">@im</span>, <span class="ruby-ivar">@jm</span>, <span class="ruby-ivar">@km</span>)
|
442
|
-
<span class="ruby-keyword kw">else</span> <span class="ruby-identifier">x</span> , <span class="ruby-identifier">y</span> = <span class="ruby-identifier">other</span>.<span class="ruby-identifier">coerce</span>(<span class="ruby-keyword kw">self</span>); <span class="ruby-identifier">x</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">y</span>
|
443
|
-
<span class="ruby-keyword kw">end</span>
|
444
|
-
<span class="ruby-keyword kw">end</span>
|
445
|
-
</pre>
|
446
|
-
</div>
|
447
|
-
</div>
|
448
|
-
</div>
|
449
|
-
<div class="method">
|
450
|
-
<div class="title">
|
451
|
-
<a name="M000569"></a><b>/</b>(other)
|
452
|
-
</div>
|
453
|
-
<div class="sourcecode">
|
454
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000569_source')" id="l_M000569_source">show source</a> ]</p>
|
455
|
-
<div id="M000569_source" class="dyn-source">
|
456
|
-
<pre>
|
457
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 392</span>
|
458
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">other</span>
|
459
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Quaternion</span>); <span class="ruby-keyword kw">self</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">conjugate</span><span class="ruby-operator">/</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">abs2</span>
|
460
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Complex</span>); <span class="ruby-keyword kw">self</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">conjugate</span><span class="ruby-operator">/</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">abs2</span>
|
461
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">Complex</span>.<span class="ruby-identifier">generic?</span>(<span class="ruby-identifier">other</span>);
|
462
|
-
<span class="ruby-constant">Quaternion</span>(<span class="ruby-ivar">@re</span><span class="ruby-operator">/</span><span class="ruby-identifier">other</span>, <span class="ruby-ivar">@im</span><span class="ruby-operator">/</span><span class="ruby-identifier">other</span>, <span class="ruby-ivar">@jm</span><span class="ruby-operator">/</span><span class="ruby-identifier">other</span>, <span class="ruby-ivar">@km</span><span class="ruby-operator">/</span><span class="ruby-identifier">other</span> )
|
463
|
-
<span class="ruby-keyword kw">else</span> <span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span> = <span class="ruby-identifier">other</span>.<span class="ruby-identifier">coerce</span>(<span class="ruby-keyword kw">self</span>); <span class="ruby-identifier">x</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">y</span>
|
464
|
-
<span class="ruby-keyword kw">end</span>
|
465
|
-
<span class="ruby-keyword kw">end</span>
|
466
|
-
</pre>
|
467
|
-
</div>
|
468
|
-
</div>
|
469
|
-
</div>
|
470
|
-
<div class="method">
|
471
|
-
<div class="title">
|
472
|
-
<a name="M000562"></a><b><=></b>(other)
|
473
|
-
</div>
|
474
|
-
<div class="sourcecode">
|
475
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000562_source')" id="l_M000562_source">show source</a> ]</p>
|
476
|
-
<div id="M000562_source" class="dyn-source">
|
477
|
-
<pre>
|
478
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 339</span>
|
479
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><=></span> (<span class="ruby-identifier">other</span>); <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">abs</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">abs</span>; <span class="ruby-keyword kw">end</span>
|
480
|
-
</pre>
|
481
|
-
</div>
|
482
|
-
</div>
|
483
|
-
</div>
|
484
|
-
<div class="method">
|
485
|
-
<div class="title">
|
486
|
-
<a name="M000563"></a><b>==</b>(other)
|
487
|
-
</div>
|
488
|
-
<div class="sourcecode">
|
489
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000563_source')" id="l_M000563_source">show source</a> ]</p>
|
490
|
-
<div id="M000563_source" class="dyn-source">
|
491
|
-
<pre>
|
492
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 340</span>
|
493
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span> (<span class="ruby-identifier">other</span>)
|
494
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Quaternion</span>)
|
495
|
-
<span class="ruby-keyword kw">return</span> (<span class="ruby-ivar">@re</span><span class="ruby-operator">==</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">re</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@im</span><span class="ruby-operator">==</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">im</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@jm</span><span class="ruby-operator">==</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">jm</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@km</span><span class="ruby-operator">==</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">km</span>)
|
496
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Complex</span>)
|
497
|
-
<span class="ruby-ivar">@re</span><span class="ruby-operator">==</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">real</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@im</span><span class="ruby-operator">==</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">image</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@jm</span><span class="ruby-operator">==</span><span class="ruby-value">0</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@km</span><span class="ruby-operator">==</span><span class="ruby-value">0</span>
|
498
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">Complex</span>.<span class="ruby-identifier">generic?</span>(<span class="ruby-identifier">other</span>)
|
499
|
-
<span class="ruby-ivar">@re</span><span class="ruby-operator">==</span><span class="ruby-identifier">other</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@im</span><span class="ruby-operator">==</span><span class="ruby-value">0</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@jm</span><span class="ruby-operator">==</span><span class="ruby-value">0</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@km</span><span class="ruby-operator">==</span><span class="ruby-value">0</span>
|
500
|
-
<span class="ruby-keyword kw">else</span> <span class="ruby-identifier">x</span> , <span class="ruby-identifier">y</span> = <span class="ruby-identifier">other</span>.<span class="ruby-identifier">coerce</span>(<span class="ruby-keyword kw">self</span>); <span class="ruby-identifier">x</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">y</span>
|
501
|
-
<span class="ruby-keyword kw">end</span>
|
502
|
-
<span class="ruby-keyword kw">end</span>
|
503
|
-
</pre>
|
504
|
-
</div>
|
505
|
-
</div>
|
506
|
-
</div>
|
507
|
-
<div class="method">
|
508
|
-
<div class="title">
|
509
|
-
<a name="M000545"></a><b>abs</b>()
|
510
|
-
</div>
|
511
|
-
<div class="sourcecode">
|
512
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000545_source')" id="l_M000545_source">show source</a> ]</p>
|
513
|
-
<div id="M000545_source" class="dyn-source">
|
514
|
-
<pre>
|
515
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 303</span>
|
516
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">abs</span>; <span class="ruby-constant">Math</span>.<span class="ruby-identifier">sqrt</span>((<span class="ruby-ivar">@re</span><span class="ruby-operator">*</span><span class="ruby-ivar">@re</span><span class="ruby-operator">+</span><span class="ruby-ivar">@im</span><span class="ruby-operator">*</span><span class="ruby-ivar">@im</span><span class="ruby-operator">+</span><span class="ruby-ivar">@jm</span><span class="ruby-operator">*</span><span class="ruby-ivar">@jm</span><span class="ruby-operator">+</span><span class="ruby-ivar">@km</span><span class="ruby-operator">*</span><span class="ruby-ivar">@km</span>).<span class="ruby-identifier">to_f</span>); <span class="ruby-keyword kw">end</span>
|
517
|
-
</pre>
|
518
|
-
</div>
|
519
|
-
</div>
|
520
|
-
</div>
|
521
|
-
<div class="method">
|
522
|
-
<div class="title">
|
523
|
-
<a name="M000544"></a><b>abs2</b>()
|
524
|
-
</div>
|
525
|
-
<div class="sourcecode">
|
526
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000544_source')" id="l_M000544_source">show source</a> ]</p>
|
527
|
-
<div id="M000544_source" class="dyn-source">
|
528
|
-
<pre>
|
529
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 302</span>
|
530
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">abs2</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@re</span><span class="ruby-operator">*</span><span class="ruby-ivar">@re</span><span class="ruby-operator">+</span><span class="ruby-ivar">@im</span><span class="ruby-operator">*</span><span class="ruby-ivar">@im</span><span class="ruby-operator">+</span><span class="ruby-ivar">@jm</span><span class="ruby-operator">*</span><span class="ruby-ivar">@jm</span><span class="ruby-operator">+</span><span class="ruby-ivar">@km</span><span class="ruby-operator">*</span><span class="ruby-ivar">@km</span>; <span class="ruby-keyword kw">end</span>
|
531
|
-
</pre>
|
532
|
-
</div>
|
533
|
-
</div>
|
534
|
-
</div>
|
535
|
-
<div class="method">
|
536
|
-
<div class="title">
|
537
|
-
<a name="M000594"></a><b>acos</b>()
|
538
|
-
</div>
|
539
|
-
<div class="sourcecode">
|
540
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000594_source')" id="l_M000594_source">show source</a> ]</p>
|
541
|
-
<div id="M000594_source" class="dyn-source">
|
542
|
-
<pre>
|
543
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 522</span>
|
544
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">acos</span>
|
545
|
-
<span class="ruby-comment cmt"># acos q = -u log(q+sqrt(q^2-1))</span>
|
546
|
-
<span class="ruby-identifier">q</span>=<span class="ruby-keyword kw">self</span>; <span class="ruby-identifier">u</span>=<span class="ruby-identifier">unit_vector</span>; <span class="ruby-operator">-</span><span class="ruby-identifier">u</span><span class="ruby-operator">*</span>((<span class="ruby-identifier">q</span><span class="ruby-operator">+</span>(<span class="ruby-identifier">q</span><span class="ruby-operator">*</span><span class="ruby-identifier">q</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>).<span class="ruby-identifier">sqrt</span>).<span class="ruby-identifier">log</span>)
|
547
|
-
<span class="ruby-keyword kw">end</span>
|
548
|
-
</pre>
|
549
|
-
</div>
|
550
|
-
</div>
|
551
|
-
</div>
|
552
|
-
<div class="method">
|
553
|
-
<div class="title">
|
554
|
-
<a name="M000535"></a><b>amplitude</b>()
|
555
|
-
</div>
|
556
|
-
<div class="sourcecode">
|
557
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000535_source')" id="l_M000535_source">show source</a> ]</p>
|
558
|
-
<div id="M000535_source" class="dyn-source">
|
559
|
-
<pre>
|
560
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 281</span>
|
561
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">amplitude</span>; <span class="ruby-constant">Math</span>.<span class="ruby-identifier">atan2</span>(<span class="ruby-constant">Math</span>.<span class="ruby-identifier">sqrt</span>((<span class="ruby-ivar">@im</span><span class="ruby-operator">*</span><span class="ruby-ivar">@im</span><span class="ruby-operator">+</span><span class="ruby-ivar">@jm</span><span class="ruby-operator">*</span><span class="ruby-ivar">@jm</span><span class="ruby-operator">+</span><span class="ruby-ivar">@km</span><span class="ruby-operator">*</span><span class="ruby-ivar">@km</span>).<span class="ruby-identifier">to_f</span>),<span class="ruby-ivar">@re</span>.<span class="ruby-identifier">to_f</span>); <span class="ruby-keyword kw">end</span>
|
562
|
-
</pre>
|
563
|
-
</div>
|
564
|
-
</div>
|
565
|
-
</div>
|
566
|
-
<div class="method">
|
567
|
-
<div class="title">
|
568
|
-
<a name="M000538"></a><b>arg1</b>()
|
569
|
-
</div>
|
570
|
-
<div class="sourcecode">
|
571
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000538_source')" id="l_M000538_source">show source</a> ]</p>
|
572
|
-
<div id="M000538_source" class="dyn-source">
|
573
|
-
<pre>
|
574
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 284</span>
|
575
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">arg1</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">amplitude</span>; <span class="ruby-keyword kw">end</span>
|
576
|
-
</pre>
|
577
|
-
</div>
|
578
|
-
</div>
|
579
|
-
</div>
|
580
|
-
<div class="method">
|
581
|
-
<div class="title">
|
582
|
-
<a name="M000539"></a><b>arg2</b>()
|
583
|
-
</div>
|
584
|
-
<div class="sourcecode">
|
585
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000539_source')" id="l_M000539_source">show source</a> ]</p>
|
586
|
-
<div id="M000539_source" class="dyn-source">
|
587
|
-
<pre>
|
588
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 285</span>
|
589
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">arg2</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">latitude</span>; <span class="ruby-keyword kw">end</span>
|
590
|
-
</pre>
|
591
|
-
</div>
|
592
|
-
</div>
|
593
|
-
</div>
|
594
|
-
<div class="method">
|
595
|
-
<div class="title">
|
596
|
-
<a name="M000540"></a><b>arg3</b>()
|
597
|
-
</div>
|
598
|
-
<div class="sourcecode">
|
599
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000540_source')" id="l_M000540_source">show source</a> ]</p>
|
600
|
-
<div id="M000540_source" class="dyn-source">
|
601
|
-
<pre>
|
602
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 286</span>
|
603
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">arg3</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">longitude</span>; <span class="ruby-keyword kw">end</span>
|
604
|
-
</pre>
|
605
|
-
</div>
|
606
|
-
</div>
|
607
|
-
</div>
|
608
|
-
<div class="method">
|
609
|
-
<div class="title">
|
610
|
-
<a name="M000593"></a><b>asin</b>()
|
611
|
-
</div>
|
612
|
-
<div class="description">
|
613
|
-
<p>
|
614
|
-
Inverse trigonometric functions
|
615
|
-
</p>
|
616
|
-
</div>
|
617
|
-
<div class="sourcecode">
|
618
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000593_source')" id="l_M000593_source">show source</a> ]</p>
|
619
|
-
<div id="M000593_source" class="dyn-source">
|
620
|
-
<pre>
|
621
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 518</span>
|
622
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">asin</span>
|
623
|
-
<span class="ruby-comment cmt"># asin q = -u log(uq+sqrt(1-q^2))</span>
|
624
|
-
<span class="ruby-identifier">q</span>=<span class="ruby-keyword kw">self</span>; <span class="ruby-identifier">u</span>=<span class="ruby-identifier">unit_vector</span>; <span class="ruby-operator">-</span><span class="ruby-identifier">u</span><span class="ruby-operator">*</span>((<span class="ruby-identifier">u</span><span class="ruby-operator">*</span><span class="ruby-identifier">q</span><span class="ruby-operator">+</span>(<span class="ruby-value">1</span><span class="ruby-operator">-</span><span class="ruby-identifier">q</span><span class="ruby-operator">*</span><span class="ruby-identifier">q</span>).<span class="ruby-identifier">sqrt</span>).<span class="ruby-identifier">log</span>)
|
625
|
-
<span class="ruby-keyword kw">end</span>
|
626
|
-
</pre>
|
627
|
-
</div>
|
628
|
-
</div>
|
629
|
-
</div>
|
630
|
-
<div class="method">
|
631
|
-
<div class="title">
|
632
|
-
<a name="M000595"></a><b>atan</b>()
|
633
|
-
</div>
|
634
|
-
<div class="sourcecode">
|
635
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000595_source')" id="l_M000595_source">show source</a> ]</p>
|
636
|
-
<div id="M000595_source" class="dyn-source">
|
637
|
-
<pre>
|
638
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 526</span>
|
639
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">atan</span>
|
640
|
-
<span class="ruby-comment cmt"># atan q = u/2 log( (u+q)/(u-q) )</span>
|
641
|
-
<span class="ruby-identifier">q</span>=<span class="ruby-keyword kw">self</span>; <span class="ruby-identifier">u</span>=<span class="ruby-identifier">q</span>.<span class="ruby-identifier">unit_vector</span>; <span class="ruby-identifier">u</span><span class="ruby-operator">*</span>((<span class="ruby-identifier">u</span><span class="ruby-operator">+</span><span class="ruby-identifier">q</span>)<span class="ruby-operator">/</span>(<span class="ruby-identifier">u</span><span class="ruby-operator">-</span><span class="ruby-identifier">q</span>)).<span class="ruby-identifier">log</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>
|
642
|
-
<span class="ruby-keyword kw">end</span>
|
643
|
-
</pre>
|
644
|
-
</div>
|
645
|
-
</div>
|
646
|
-
</div>
|
647
|
-
<div class="method">
|
648
|
-
<div class="title">
|
649
|
-
<a name="M000561"></a><b>coerce</b>(other)
|
650
|
-
</div>
|
651
|
-
<div class="description">
|
652
|
-
<p>
|
653
|
-
Arithmetic
|
654
|
-
</p>
|
655
|
-
</div>
|
656
|
-
<div class="sourcecode">
|
657
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000561_source')" id="l_M000561_source">show source</a> ]</p>
|
658
|
-
<div id="M000561_source" class="dyn-source">
|
659
|
-
<pre>
|
660
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 333</span>
|
661
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">coerce</span>(<span class="ruby-identifier">other</span>)
|
662
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Complex</span>); <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Quaternion</span>(<span class="ruby-identifier">other</span>), <span class="ruby-keyword kw">self</span>
|
663
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">Complex</span><span class="ruby-operator">::</span><span class="ruby-identifier">generic?</span>(<span class="ruby-identifier">other</span>); <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Quaternion</span>(<span class="ruby-identifier">other</span>), <span class="ruby-keyword kw">self</span>
|
664
|
-
<span class="ruby-keyword kw">else</span> <span class="ruby-keyword kw">super</span>
|
665
|
-
<span class="ruby-keyword kw">end</span>
|
666
|
-
<span class="ruby-keyword kw">end</span>
|
667
|
-
</pre>
|
668
|
-
</div>
|
669
|
-
</div>
|
670
|
-
</div>
|
671
|
-
<div class="method">
|
672
|
-
<div class="title">
|
673
|
-
<a name="M000547"></a><b>conjugate</b>()
|
674
|
-
</div>
|
675
|
-
<div class="sourcecode">
|
676
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000547_source')" id="l_M000547_source">show source</a> ]</p>
|
677
|
-
<div id="M000547_source" class="dyn-source">
|
678
|
-
<pre>
|
679
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 305</span>
|
680
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">conjugate</span>; <span class="ruby-constant">Quaternion</span>(<span class="ruby-ivar">@re</span>,<span class="ruby-operator">-</span><span class="ruby-ivar">@im</span>,<span class="ruby-operator">-</span><span class="ruby-ivar">@jm</span>,<span class="ruby-operator">-</span><span class="ruby-ivar">@km</span>); <span class="ruby-keyword kw">end</span>
|
681
|
-
</pre>
|
682
|
-
</div>
|
683
|
-
</div>
|
684
|
-
</div>
|
685
|
-
<div class="method">
|
686
|
-
<div class="title">
|
687
|
-
<a name="M000591"></a><b>cos</b>()
|
688
|
-
</div>
|
689
|
-
<div class="sourcecode">
|
690
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000591_source')" id="l_M000591_source">show source</a> ]</p>
|
691
|
-
<div id="M000591_source" class="dyn-source">
|
692
|
-
<pre>
|
693
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 505</span>
|
694
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cos</span>
|
695
|
-
<span class="ruby-comment cmt"># cos(r+uv)=cos r cosh v - u sin r sinh v</span>
|
696
|
-
<span class="ruby-identifier">vec</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">vector</span>; <span class="ruby-identifier">v</span>=<span class="ruby-identifier">vec</span>.<span class="ruby-identifier">abs</span>; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span><span class="ruby-operator">==</span><span class="ruby-value">0</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Quaternion</span>(<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">cos</span>(<span class="ruby-ivar">@re</span>)); <span class="ruby-keyword kw">end</span>
|
697
|
-
<span class="ruby-identifier">u</span> = <span class="ruby-identifier">vec</span><span class="ruby-operator">/</span><span class="ruby-identifier">v</span>; <span class="ruby-identifier">e</span>=<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">exp</span>(<span class="ruby-identifier">v</span>); <span class="ruby-identifier">er</span>=<span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-identifier">e</span>; <span class="ruby-identifier">c</span>=<span class="ruby-identifier">e</span><span class="ruby-operator">+</span><span class="ruby-identifier">er</span>; <span class="ruby-identifier">s</span>=<span class="ruby-identifier">e</span><span class="ruby-operator">-</span><span class="ruby-identifier">er</span>
|
698
|
-
(<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">cos</span>(<span class="ruby-ivar">@re</span>)<span class="ruby-operator">*</span><span class="ruby-identifier">c</span><span class="ruby-operator">-</span><span class="ruby-identifier">u</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">sin</span>(<span class="ruby-ivar">@re</span>)<span class="ruby-operator">*</span><span class="ruby-identifier">s</span>)<span class="ruby-operator">/</span><span class="ruby-value">2</span>
|
699
|
-
<span class="ruby-keyword kw">end</span>
|
700
|
-
</pre>
|
701
|
-
</div>
|
702
|
-
</div>
|
703
|
-
</div>
|
704
|
-
<div class="method">
|
705
|
-
<div class="title">
|
706
|
-
<a name="M000588"></a><b>cosh</b>()
|
707
|
-
</div>
|
708
|
-
<div class="sourcecode">
|
709
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000588_source')" id="l_M000588_source">show source</a> ]</p>
|
710
|
-
<div id="M000588_source" class="dyn-source">
|
711
|
-
<pre>
|
712
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 496</span>
|
713
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cosh</span>; <span class="ruby-identifier">e</span>=<span class="ruby-identifier">exp</span>; <span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">e</span><span class="ruby-operator">+</span><span class="ruby-identifier">e</span>.<span class="ruby-identifier">inverse</span>)<span class="ruby-operator">/</span><span class="ruby-value">2</span>; <span class="ruby-keyword kw">end</span>
|
714
|
-
</pre>
|
715
|
-
</div>
|
716
|
-
</div>
|
717
|
-
</div>
|
718
|
-
<div class="method">
|
719
|
-
<div class="title">
|
720
|
-
<a name="M000568"></a><b>cross_product</b>(other)
|
721
|
-
</div>
|
722
|
-
<div class="sourcecode">
|
723
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000568_source')" id="l_M000568_source">show source</a> ]</p>
|
724
|
-
<div id="M000568_source" class="dyn-source">
|
725
|
-
<pre>
|
726
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 389</span>
|
727
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cross_product</span> <span class="ruby-identifier">other</span>
|
728
|
-
<span class="ruby-operator">-</span>(<span class="ruby-keyword kw">self</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">conjugate</span>).<span class="ruby-identifier">vector</span>
|
729
|
-
<span class="ruby-keyword kw">end</span>
|
730
|
-
</pre>
|
731
|
-
</div>
|
732
|
-
</div>
|
733
|
-
</div>
|
734
|
-
<div class="method">
|
735
|
-
<div class="title">
|
736
|
-
<a name="M000572"></a><b>divmod</b>(other)
|
737
|
-
</div>
|
738
|
-
<div class="sourcecode">
|
739
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000572_source')" id="l_M000572_source">show source</a> ]</p>
|
740
|
-
<div id="M000572_source" class="dyn-source">
|
741
|
-
<pre>
|
742
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 408</span>
|
743
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divmod</span> <span class="ruby-identifier">other</span>
|
744
|
-
<span class="ruby-comment cmt"># right divmod: q1=d*q2+m</span>
|
745
|
-
<span class="ruby-identifier">d</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rdiv</span>(<span class="ruby-identifier">other</span>).<span class="ruby-identifier">round</span>; <span class="ruby-identifier">m</span>=<span class="ruby-keyword kw">self</span><span class="ruby-operator">-</span><span class="ruby-identifier">d</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">d</span>,<span class="ruby-identifier">m</span>
|
746
|
-
<span class="ruby-keyword kw">end</span>
|
747
|
-
</pre>
|
748
|
-
</div>
|
749
|
-
</div>
|
750
|
-
</div>
|
751
|
-
<div class="method">
|
752
|
-
<div class="title">
|
753
|
-
<a name="M000573"></a><b>divmod_D4</b>(other)
|
754
|
-
</div>
|
755
|
-
<div class="sourcecode">
|
756
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000573_source')" id="l_M000573_source">show source</a> ]</p>
|
757
|
-
<div id="M000573_source" class="dyn-source">
|
758
|
-
<pre>
|
759
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 412</span>
|
760
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divmod_D4</span> <span class="ruby-identifier">other</span>
|
761
|
-
<span class="ruby-comment cmt"># right divmod: q1=d*q2+m, d be D4</span>
|
762
|
-
<span class="ruby-identifier">d</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rdiv</span>(<span class="ruby-identifier">other</span>).<span class="ruby-identifier">round_D4</span>; <span class="ruby-identifier">m</span>=<span class="ruby-keyword kw">self</span><span class="ruby-operator">-</span><span class="ruby-identifier">d</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">d</span>,<span class="ruby-identifier">m</span>
|
763
|
-
<span class="ruby-keyword kw">end</span>
|
764
|
-
</pre>
|
765
|
-
</div>
|
766
|
-
</div>
|
767
|
-
</div>
|
768
|
-
<div class="method">
|
769
|
-
<div class="title">
|
770
|
-
<a name="M000567"></a><b>dot_product</b>(other)
|
771
|
-
</div>
|
772
|
-
<div class="sourcecode">
|
773
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000567_source')" id="l_M000567_source">show source</a> ]</p>
|
774
|
-
<div id="M000567_source" class="dyn-source">
|
775
|
-
<pre>
|
776
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 386</span>
|
777
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dot_product</span> <span class="ruby-identifier">other</span>
|
778
|
-
(<span class="ruby-keyword kw">self</span><span class="ruby-operator">*</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">conjugate</span>).<span class="ruby-identifier">re</span>
|
779
|
-
<span class="ruby-keyword kw">end</span>
|
780
|
-
</pre>
|
781
|
-
</div>
|
782
|
-
</div>
|
783
|
-
</div>
|
784
|
-
<div class="method">
|
785
|
-
<div class="title">
|
786
|
-
<a name="M000583"></a><b>exp</b>()
|
787
|
-
</div>
|
788
|
-
<div class="description">
|
789
|
-
<p>
|
790
|
-
Exponential and logarithmic functions
|
791
|
-
</p>
|
792
|
-
</div>
|
793
|
-
<div class="sourcecode">
|
794
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000583_source')" id="l_M000583_source">show source</a> ]</p>
|
795
|
-
<div id="M000583_source" class="dyn-source">
|
796
|
-
<pre>
|
797
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 459</span>
|
798
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exp</span>
|
799
|
-
<span class="ruby-comment cmt"># e^(r+uv)=exp(r)(cos(v)+u*sin(v))</span>
|
800
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">is_real?</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Quaternion</span>(<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">exp</span>(<span class="ruby-ivar">@re</span>)); <span class="ruby-keyword kw">end</span>
|
801
|
-
<span class="ruby-identifier">vec</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">vector</span>; <span class="ruby-identifier">v</span>=<span class="ruby-identifier">vec</span>.<span class="ruby-identifier">abs</span>; <span class="ruby-identifier">u</span> = <span class="ruby-identifier">vec</span><span class="ruby-operator">/</span><span class="ruby-identifier">v</span>;
|
802
|
-
<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">exp</span>(<span class="ruby-ivar">@re</span>)<span class="ruby-operator">*</span>(<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">cos</span>(<span class="ruby-identifier">v</span>)<span class="ruby-operator">+</span><span class="ruby-identifier">u</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">sin</span>(<span class="ruby-identifier">v</span>))
|
803
|
-
<span class="ruby-keyword kw">end</span>
|
804
|
-
</pre>
|
805
|
-
</div>
|
806
|
-
</div>
|
807
|
-
</div>
|
808
|
-
<div class="method">
|
809
|
-
<div class="title">
|
810
|
-
<a name="M000581"></a><b>gcd</b>(other)
|
811
|
-
</div>
|
812
|
-
<div class="sourcecode">
|
813
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000581_source')" id="l_M000581_source">show source</a> ]</p>
|
814
|
-
<div id="M000581_source" class="dyn-source">
|
815
|
-
<pre>
|
816
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 444</span>
|
817
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gcd</span> <span class="ruby-identifier">other</span>
|
818
|
-
<span class="ruby-identifier">a</span>=<span class="ruby-keyword kw">self</span>; <span class="ruby-identifier">b</span>=<span class="ruby-identifier">other</span>
|
819
|
-
<span class="ruby-keyword kw">while</span> <span class="ruby-keyword kw">true</span>
|
820
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">b</span><span class="ruby-operator">==</span><span class="ruby-value">0</span> ; <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">a</span>;<span class="ruby-keyword kw">end</span>
|
821
|
-
<span class="ruby-identifier">a</span>=<span class="ruby-identifier">a</span>.<span class="ruby-identifier">rmod_D4</span>(<span class="ruby-identifier">b</span>)
|
822
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">a</span><span class="ruby-operator">==</span><span class="ruby-value">0</span> ; <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">b</span>;<span class="ruby-keyword kw">end</span>
|
823
|
-
<span class="ruby-identifier">b</span>=<span class="ruby-identifier">a</span>.<span class="ruby-identifier">lmod_D4</span>(<span class="ruby-identifier">b</span>)
|
824
|
-
<span class="ruby-keyword kw">end</span>
|
825
|
-
<span class="ruby-keyword kw">end</span>
|
826
|
-
</pre>
|
827
|
-
</div>
|
828
|
-
</div>
|
829
|
-
</div>
|
830
|
-
<div class="method">
|
831
|
-
<div class="title">
|
832
|
-
<a name="M000596"></a><b>hash</b>()
|
833
|
-
</div>
|
834
|
-
<div class="sourcecode">
|
835
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000596_source')" id="l_M000596_source">show source</a> ]</p>
|
836
|
-
<div id="M000596_source" class="dyn-source">
|
837
|
-
<pre>
|
838
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 532</span>
|
839
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash</span>; <span class="ruby-ivar">@re</span><span class="ruby-operator">^</span><span class="ruby-ivar">@im</span><span class="ruby-operator">^</span><span class="ruby-ivar">@jm</span><span class="ruby-operator">^</span><span class="ruby-ivar">@km</span>; <span class="ruby-keyword kw">end</span>
|
840
|
-
</pre>
|
841
|
-
</div>
|
842
|
-
</div>
|
843
|
-
</div>
|
844
|
-
<div class="method">
|
845
|
-
<div class="title">
|
846
|
-
<a name="M000526"></a><b>image</b>()
|
847
|
-
</div>
|
848
|
-
<div class="sourcecode">
|
849
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000526_source')" id="l_M000526_source">show source</a> ]</p>
|
850
|
-
<div id="M000526_source" class="dyn-source">
|
851
|
-
<pre>
|
852
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 241</span>
|
853
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">image</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@im</span>; <span class="ruby-keyword kw">end</span>
|
854
|
-
</pre>
|
855
|
-
</div>
|
856
|
-
</div>
|
857
|
-
</div>
|
858
|
-
<div class="method">
|
859
|
-
<div class="title">
|
860
|
-
<a name="M000597"></a><b>inspect</b>()
|
861
|
-
</div>
|
862
|
-
<div class="sourcecode">
|
863
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000597_source')" id="l_M000597_source">show source</a> ]</p>
|
864
|
-
<div id="M000597_source" class="dyn-source">
|
865
|
-
<pre>
|
866
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 534</span>
|
867
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
868
|
-
<span class="ruby-identifier">sprintf</span>(<span class="ruby-value str">"Quaternion(%s,%s,%s,%s)"</span>,
|
869
|
-
<span class="ruby-ivar">@re</span>.<span class="ruby-identifier">inspect</span>, <span class="ruby-ivar">@im</span>.<span class="ruby-identifier">inspect</span>, <span class="ruby-ivar">@jm</span>.<span class="ruby-identifier">inspect</span>, <span class="ruby-ivar">@km</span>.<span class="ruby-identifier">inspect</span>)
|
870
|
-
<span class="ruby-keyword kw">end</span>
|
871
|
-
</pre>
|
872
|
-
</div>
|
873
|
-
</div>
|
874
|
-
</div>
|
875
|
-
<div class="method">
|
876
|
-
<div class="title">
|
877
|
-
<a name="M000548"></a><b>inverse</b>()
|
878
|
-
</div>
|
879
|
-
<div class="sourcecode">
|
880
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000548_source')" id="l_M000548_source">show source</a> ]</p>
|
881
|
-
<div id="M000548_source" class="dyn-source">
|
882
|
-
<pre>
|
883
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 306</span>
|
884
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inverse</span>; <span class="ruby-identifier">conjugate</span><span class="ruby-operator">/</span><span class="ruby-identifier">abs2</span>; <span class="ruby-keyword kw">end</span>
|
885
|
-
</pre>
|
886
|
-
</div>
|
887
|
-
</div>
|
888
|
-
</div>
|
889
|
-
<div class="method">
|
890
|
-
<div class="title">
|
891
|
-
<a name="M000550"></a><b>is_complex?</b>()
|
892
|
-
</div>
|
893
|
-
<div class="sourcecode">
|
894
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000550_source')" id="l_M000550_source">show source</a> ]</p>
|
895
|
-
<div id="M000550_source" class="dyn-source">
|
896
|
-
<pre>
|
897
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 309</span>
|
898
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_complex?</span>; <span class="ruby-ivar">@jm</span><span class="ruby-operator">==</span><span class="ruby-value">0</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@km</span><span class="ruby-operator">==</span><span class="ruby-value">0</span>; <span class="ruby-keyword kw">end</span>
|
899
|
-
</pre>
|
900
|
-
</div>
|
901
|
-
</div>
|
902
|
-
</div>
|
903
|
-
<div class="method">
|
904
|
-
<div class="title">
|
905
|
-
<a name="M000551"></a><b>is_quaternion?</b>()
|
906
|
-
</div>
|
907
|
-
<div class="sourcecode">
|
908
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000551_source')" id="l_M000551_source">show source</a> ]</p>
|
909
|
-
<div id="M000551_source" class="dyn-source">
|
910
|
-
<pre>
|
911
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 310</span>
|
912
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_quaternion?</span>; <span class="ruby-keyword kw">not</span>(<span class="ruby-identifier">is_complex?</span>); <span class="ruby-keyword kw">end</span>
|
913
|
-
</pre>
|
914
|
-
</div>
|
915
|
-
</div>
|
916
|
-
</div>
|
917
|
-
<div class="method">
|
918
|
-
<div class="title">
|
919
|
-
<a name="M000549"></a><b>is_real?</b>()
|
920
|
-
</div>
|
921
|
-
<div class="sourcecode">
|
922
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000549_source')" id="l_M000549_source">show source</a> ]</p>
|
923
|
-
<div id="M000549_source" class="dyn-source">
|
924
|
-
<pre>
|
925
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 308</span>
|
926
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_real?</span>; <span class="ruby-ivar">@im</span><span class="ruby-operator">==</span><span class="ruby-value">0</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@jm</span><span class="ruby-operator">==</span><span class="ruby-value">0</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@km</span><span class="ruby-operator">==</span><span class="ruby-value">0</span>; <span class="ruby-keyword kw">end</span>
|
927
|
-
</pre>
|
928
|
-
</div>
|
929
|
-
</div>
|
930
|
-
</div>
|
931
|
-
<div class="method">
|
932
|
-
<div class="title">
|
933
|
-
<a name="M000557"></a><b>is_unit_vector?</b>()
|
934
|
-
</div>
|
935
|
-
<div class="sourcecode">
|
936
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000557_source')" id="l_M000557_source">show source</a> ]</p>
|
937
|
-
<div id="M000557_source" class="dyn-source">
|
938
|
-
<pre>
|
939
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 324</span>
|
940
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_unit_vector?</span>; <span class="ruby-ivar">@re</span><span class="ruby-operator">==</span><span class="ruby-value">0</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">abs2</span><span class="ruby-operator">==</span><span class="ruby-value">1</span>; <span class="ruby-keyword kw">end</span>
|
941
|
-
</pre>
|
942
|
-
</div>
|
943
|
-
</div>
|
944
|
-
</div>
|
945
|
-
<div class="method">
|
946
|
-
<div class="title">
|
947
|
-
<a name="M000553"></a><b>is_vector?</b>()
|
948
|
-
</div>
|
949
|
-
<div class="sourcecode">
|
950
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000553_source')" id="l_M000553_source">show source</a> ]</p>
|
951
|
-
<div id="M000553_source" class="dyn-source">
|
952
|
-
<pre>
|
953
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 313</span>
|
954
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_vector?</span>; <span class="ruby-ivar">@re</span><span class="ruby-operator">==</span><span class="ruby-value">0</span>; <span class="ruby-keyword kw">end</span>
|
955
|
-
</pre>
|
956
|
-
</div>
|
957
|
-
</div>
|
958
|
-
</div>
|
959
|
-
<div class="method">
|
960
|
-
<div class="title">
|
961
|
-
<a name="M000536"></a><b>latitude</b>()
|
962
|
-
</div>
|
963
|
-
<div class="sourcecode">
|
964
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000536_source')" id="l_M000536_source">show source</a> ]</p>
|
965
|
-
<div id="M000536_source" class="dyn-source">
|
966
|
-
<pre>
|
967
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 282</span>
|
968
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">latitude</span>; <span class="ruby-constant">Math</span>.<span class="ruby-identifier">atan2</span>(<span class="ruby-constant">Math</span>.<span class="ruby-identifier">sqrt</span>((<span class="ruby-ivar">@jm</span><span class="ruby-operator">*</span><span class="ruby-ivar">@jm</span><span class="ruby-operator">+</span><span class="ruby-ivar">@km</span><span class="ruby-operator">*</span><span class="ruby-ivar">@km</span>).<span class="ruby-identifier">to_f</span>),<span class="ruby-ivar">@im</span>.<span class="ruby-identifier">to_f</span>); <span class="ruby-keyword kw">end</span>
|
969
|
-
</pre>
|
970
|
-
</div>
|
971
|
-
</div>
|
972
|
-
</div>
|
973
|
-
<div class="method">
|
974
|
-
<div class="title">
|
975
|
-
<a name="M000571"></a><b>ldiv</b>(other)
|
976
|
-
</div>
|
977
|
-
<div class="sourcecode">
|
978
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000571_source')" id="l_M000571_source">show source</a> ]</p>
|
979
|
-
<div id="M000571_source" class="dyn-source">
|
980
|
-
<pre>
|
981
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 404</span>
|
982
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ldiv</span> <span class="ruby-identifier">other</span>
|
983
|
-
<span class="ruby-comment cmt"># left division: 1/q1 * q2</span>
|
984
|
-
(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">conjugate</span>)<span class="ruby-operator">*</span><span class="ruby-identifier">other</span><span class="ruby-operator">/</span><span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">abs2</span>
|
985
|
-
<span class="ruby-keyword kw">end</span>
|
986
|
-
</pre>
|
987
|
-
</div>
|
988
|
-
</div>
|
989
|
-
</div>
|
990
|
-
<div class="method">
|
991
|
-
<div class="title">
|
992
|
-
<a name="M000574"></a><b>ldivmod</b>(other)
|
993
|
-
</div>
|
994
|
-
<div class="sourcecode">
|
995
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000574_source')" id="l_M000574_source">show source</a> ]</p>
|
996
|
-
<div id="M000574_source" class="dyn-source">
|
997
|
-
<pre>
|
998
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 416</span>
|
999
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ldivmod</span> <span class="ruby-identifier">other</span>
|
1000
|
-
<span class="ruby-comment cmt"># left divmod: q2=q1*d+m</span>
|
1001
|
-
<span class="ruby-identifier">d</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">ldiv</span>(<span class="ruby-identifier">other</span>).<span class="ruby-identifier">round</span>; <span class="ruby-identifier">m</span>=<span class="ruby-identifier">other</span><span class="ruby-operator">-</span><span class="ruby-keyword kw">self</span><span class="ruby-operator">*</span><span class="ruby-identifier">d</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">d</span>,<span class="ruby-identifier">m</span>
|
1002
|
-
<span class="ruby-keyword kw">end</span>
|
1003
|
-
</pre>
|
1004
|
-
</div>
|
1005
|
-
</div>
|
1006
|
-
</div>
|
1007
|
-
<div class="method">
|
1008
|
-
<div class="title">
|
1009
|
-
<a name="M000575"></a><b>ldivmod_D4</b>(other)
|
1010
|
-
</div>
|
1011
|
-
<div class="sourcecode">
|
1012
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000575_source')" id="l_M000575_source">show source</a> ]</p>
|
1013
|
-
<div id="M000575_source" class="dyn-source">
|
1014
|
-
<pre>
|
1015
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 420</span>
|
1016
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ldivmod_D4</span> <span class="ruby-identifier">other</span>
|
1017
|
-
<span class="ruby-comment cmt"># left divmod: q2=q1*d+m, d be D4</span>
|
1018
|
-
<span class="ruby-identifier">d</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">ldiv</span>(<span class="ruby-identifier">other</span>).<span class="ruby-identifier">round_D4</span>; <span class="ruby-identifier">m</span>=<span class="ruby-identifier">other</span><span class="ruby-operator">-</span><span class="ruby-keyword kw">self</span><span class="ruby-operator">*</span><span class="ruby-identifier">d</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">d</span>,<span class="ruby-identifier">m</span>
|
1019
|
-
<span class="ruby-keyword kw">end</span>
|
1020
|
-
</pre>
|
1021
|
-
</div>
|
1022
|
-
</div>
|
1023
|
-
</div>
|
1024
|
-
<div class="method">
|
1025
|
-
<div class="title">
|
1026
|
-
<a name="M000579"></a><b>lmod</b>(other)
|
1027
|
-
</div>
|
1028
|
-
<div class="sourcecode">
|
1029
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000579_source')" id="l_M000579_source">show source</a> ]</p>
|
1030
|
-
<div id="M000579_source" class="dyn-source">
|
1031
|
-
<pre>
|
1032
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 436</span>
|
1033
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lmod</span> <span class="ruby-identifier">other</span>
|
1034
|
-
<span class="ruby-comment cmt"># left mod</span>
|
1035
|
-
<span class="ruby-identifier">d</span>,<span class="ruby-identifier">m</span>=<span class="ruby-identifier">ldivmod</span>(<span class="ruby-identifier">other</span>); <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">m</span>
|
1036
|
-
<span class="ruby-keyword kw">end</span>
|
1037
|
-
</pre>
|
1038
|
-
</div>
|
1039
|
-
</div>
|
1040
|
-
</div>
|
1041
|
-
<div class="method">
|
1042
|
-
<div class="title">
|
1043
|
-
<a name="M000580"></a><b>lmod_D4</b>(other)
|
1044
|
-
</div>
|
1045
|
-
<div class="sourcecode">
|
1046
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000580_source')" id="l_M000580_source">show source</a> ]</p>
|
1047
|
-
<div id="M000580_source" class="dyn-source">
|
1048
|
-
<pre>
|
1049
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 440</span>
|
1050
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lmod_D4</span> <span class="ruby-identifier">other</span>
|
1051
|
-
<span class="ruby-comment cmt"># left mod with D4</span>
|
1052
|
-
<span class="ruby-identifier">d</span>,<span class="ruby-identifier">m</span>=<span class="ruby-identifier">ldivmod_D4</span>(<span class="ruby-identifier">other</span>); <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">m</span>
|
1053
|
-
<span class="ruby-keyword kw">end</span>
|
1054
|
-
</pre>
|
1055
|
-
</div>
|
1056
|
-
</div>
|
1057
|
-
</div>
|
1058
|
-
<div class="method">
|
1059
|
-
<div class="title">
|
1060
|
-
<a name="M000584"></a><b>log</b>()
|
1061
|
-
</div>
|
1062
|
-
<div class="sourcecode">
|
1063
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000584_source')" id="l_M000584_source">show source</a> ]</p>
|
1064
|
-
<div id="M000584_source" class="dyn-source">
|
1065
|
-
<pre>
|
1066
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 465</span>
|
1067
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log</span>
|
1068
|
-
<span class="ruby-comment cmt"># log(r+uv)=1/2 log(r^2+v^2)+u atan(v/r)</span>
|
1069
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">is_real?</span>;
|
1070
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@re</span><span class="ruby-operator">>=</span><span class="ruby-value">0</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Quaternion</span>(<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">log</span>(<span class="ruby-ivar">@re</span>));
|
1071
|
-
<span class="ruby-keyword kw">else</span> <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Quaternion</span>(<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">log</span>(<span class="ruby-operator">-</span><span class="ruby-ivar">@re</span>),<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-constant">PI</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>);
|
1072
|
-
<span class="ruby-keyword kw">end</span>
|
1073
|
-
<span class="ruby-keyword kw">end</span>
|
1074
|
-
<span class="ruby-identifier">vec</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">vector</span>; <span class="ruby-identifier">v</span>=<span class="ruby-identifier">vec</span>.<span class="ruby-identifier">abs</span>; <span class="ruby-identifier">u</span> = <span class="ruby-identifier">vec</span><span class="ruby-operator">/</span><span class="ruby-identifier">v</span>;
|
1075
|
-
<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">log</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">abs2</span>.<span class="ruby-identifier">to_f</span>)<span class="ruby-operator">/</span><span class="ruby-value">2</span><span class="ruby-operator">+</span><span class="ruby-identifier">u</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">atan2</span>( <span class="ruby-identifier">v</span>, <span class="ruby-ivar">@re</span>)
|
1076
|
-
<span class="ruby-keyword kw">end</span>
|
1077
|
-
</pre>
|
1078
|
-
</div>
|
1079
|
-
</div>
|
1080
|
-
</div>
|
1081
|
-
<div class="method">
|
1082
|
-
<div class="title">
|
1083
|
-
<a name="M000537"></a><b>longitude</b>()
|
1084
|
-
</div>
|
1085
|
-
<div class="sourcecode">
|
1086
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000537_source')" id="l_M000537_source">show source</a> ]</p>
|
1087
|
-
<div id="M000537_source" class="dyn-source">
|
1088
|
-
<pre>
|
1089
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 283</span>
|
1090
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">longitude</span>; <span class="ruby-constant">Math</span>.<span class="ruby-identifier">atan2</span>( <span class="ruby-ivar">@km</span>.<span class="ruby-identifier">to_f</span>, <span class="ruby-ivar">@jm</span>.<span class="ruby-identifier">to_f</span>); <span class="ruby-keyword kw">end</span>
|
1091
|
-
</pre>
|
1092
|
-
</div>
|
1093
|
-
</div>
|
1094
|
-
</div>
|
1095
|
-
<div class="method">
|
1096
|
-
<div class="title">
|
1097
|
-
<a name="M000546"></a><b>magnitude</b>()
|
1098
|
-
</div>
|
1099
|
-
<div class="sourcecode">
|
1100
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000546_source')" id="l_M000546_source">show source</a> ]</p>
|
1101
|
-
<div id="M000546_source" class="dyn-source">
|
1102
|
-
<pre>
|
1103
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 304</span>
|
1104
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">magnitude</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">abs</span>; <span class="ruby-keyword kw">end</span>
|
1105
|
-
</pre>
|
1106
|
-
</div>
|
1107
|
-
</div>
|
1108
|
-
</div>
|
1109
|
-
<div class="method">
|
1110
|
-
<div class="title">
|
1111
|
-
<a name="M000582"></a><b>orthogonal_split</b>(o)
|
1112
|
-
</div>
|
1113
|
-
<div class="sourcecode">
|
1114
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000582_source')" id="l_M000582_source">show source</a> ]</p>
|
1115
|
-
<div id="M000582_source" class="dyn-source">
|
1116
|
-
<pre>
|
1117
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 453</span>
|
1118
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">orthogonal_split</span>(<span class="ruby-identifier">o</span>)
|
1119
|
-
<span class="ruby-comment cmt"># [q1,q2]. q = q1 + q2 such that q1 parallel to o, and q2 orthogonal to o.</span>
|
1120
|
-
<span class="ruby-identifier">q1</span> = <span class="ruby-identifier">o</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">dot_product</span>(<span class="ruby-identifier">o</span>); <span class="ruby-identifier">q2</span>=<span class="ruby-keyword kw">self</span><span class="ruby-operator">-</span><span class="ruby-identifier">q1</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">q1</span>,<span class="ruby-identifier">q2</span>
|
1121
|
-
<span class="ruby-keyword kw">end</span>
|
1122
|
-
</pre>
|
1123
|
-
</div>
|
1124
|
-
</div>
|
1125
|
-
</div>
|
1126
|
-
<div class="method">
|
1127
|
-
<div class="title">
|
1128
|
-
<a name="M000541"></a><b>polar</b>()
|
1129
|
-
</div>
|
1130
|
-
<div class="sourcecode">
|
1131
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000541_source')" id="l_M000541_source">show source</a> ]</p>
|
1132
|
-
<div id="M000541_source" class="dyn-source">
|
1133
|
-
<pre>
|
1134
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 287</span>
|
1135
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">polar</span>; [<span class="ruby-identifier">magnitude</span>, <span class="ruby-identifier">amplitude</span>, <span class="ruby-identifier">latitude</span>, <span class="ruby-identifier">longitude</span>]; <span class="ruby-keyword kw">end</span>
|
1136
|
-
</pre>
|
1137
|
-
</div>
|
1138
|
-
</div>
|
1139
|
-
</div>
|
1140
|
-
<div class="method">
|
1141
|
-
<div class="title">
|
1142
|
-
<a name="M000570"></a><b>rdiv</b>(other)
|
1143
|
-
</div>
|
1144
|
-
<div class="sourcecode">
|
1145
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000570_source')" id="l_M000570_source">show source</a> ]</p>
|
1146
|
-
<div id="M000570_source" class="dyn-source">
|
1147
|
-
<pre>
|
1148
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 400</span>
|
1149
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rdiv</span> <span class="ruby-identifier">other</span>
|
1150
|
-
<span class="ruby-comment cmt"># right division: q1/q2</span>
|
1151
|
-
<span class="ruby-keyword kw">self</span><span class="ruby-operator">/</span><span class="ruby-identifier">other</span>
|
1152
|
-
<span class="ruby-keyword kw">end</span>
|
1153
|
-
</pre>
|
1154
|
-
</div>
|
1155
|
-
</div>
|
1156
|
-
</div>
|
1157
|
-
<div class="method">
|
1158
|
-
<div class="title">
|
1159
|
-
<a name="M000528"></a><b>real</b>()
|
1160
|
-
</div>
|
1161
|
-
<div class="sourcecode">
|
1162
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000528_source')" id="l_M000528_source">show source</a> ]</p>
|
1163
|
-
<div id="M000528_source" class="dyn-source">
|
1164
|
-
<pre>
|
1165
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 243</span>
|
1166
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">real</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@re</span>; <span class="ruby-keyword kw">end</span>
|
1167
|
-
</pre>
|
1168
|
-
</div>
|
1169
|
-
</div>
|
1170
|
-
</div>
|
1171
|
-
<div class="method">
|
1172
|
-
<div class="title">
|
1173
|
-
<a name="M000527"></a><b>real_part</b>()
|
1174
|
-
</div>
|
1175
|
-
<div class="sourcecode">
|
1176
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000527_source')" id="l_M000527_source">show source</a> ]</p>
|
1177
|
-
<div id="M000527_source" class="dyn-source">
|
1178
|
-
<pre>
|
1179
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 242</span>
|
1180
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">real_part</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@re</span>; <span class="ruby-keyword kw">end</span>
|
1181
|
-
</pre>
|
1182
|
-
</div>
|
1183
|
-
</div>
|
1184
|
-
</div>
|
1185
|
-
<div class="method">
|
1186
|
-
<div class="title">
|
1187
|
-
<a name="M000577"></a><b>rmod</b>(other)
|
1188
|
-
</div>
|
1189
|
-
<div class="sourcecode">
|
1190
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000577_source')" id="l_M000577_source">show source</a> ]</p>
|
1191
|
-
<div id="M000577_source" class="dyn-source">
|
1192
|
-
<pre>
|
1193
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 428</span>
|
1194
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rmod</span> <span class="ruby-identifier">other</span>
|
1195
|
-
<span class="ruby-comment cmt"># right mod(same as %)</span>
|
1196
|
-
<span class="ruby-identifier">d</span>,<span class="ruby-identifier">m</span>=<span class="ruby-identifier">divmod</span>(<span class="ruby-identifier">other</span>); <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">m</span>
|
1197
|
-
<span class="ruby-keyword kw">end</span>
|
1198
|
-
</pre>
|
1199
|
-
</div>
|
1200
|
-
</div>
|
1201
|
-
</div>
|
1202
|
-
<div class="method">
|
1203
|
-
<div class="title">
|
1204
|
-
<a name="M000578"></a><b>rmod_D4</b>(other)
|
1205
|
-
</div>
|
1206
|
-
<div class="sourcecode">
|
1207
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000578_source')" id="l_M000578_source">show source</a> ]</p>
|
1208
|
-
<div id="M000578_source" class="dyn-source">
|
1209
|
-
<pre>
|
1210
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 432</span>
|
1211
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rmod_D4</span> <span class="ruby-identifier">other</span>
|
1212
|
-
<span class="ruby-comment cmt"># right mod with D4</span>
|
1213
|
-
<span class="ruby-identifier">d</span>,<span class="ruby-identifier">m</span>=<span class="ruby-identifier">divmod_D4</span>(<span class="ruby-identifier">other</span>); <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">m</span>
|
1214
|
-
<span class="ruby-keyword kw">end</span>
|
1215
|
-
</pre>
|
1216
|
-
</div>
|
1217
|
-
</div>
|
1218
|
-
</div>
|
1219
|
-
<div class="method">
|
1220
|
-
<div class="title">
|
1221
|
-
<a name="M000559"></a><b>rotate</b>(r)
|
1222
|
-
</div>
|
1223
|
-
<div class="sourcecode">
|
1224
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000559_source')" id="l_M000559_source">show source</a> ]</p>
|
1225
|
-
<div id="M000559_source" class="dyn-source">
|
1226
|
-
<pre>
|
1227
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 329</span>
|
1228
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rotate</span>(<span class="ruby-identifier">r</span>); <span class="ruby-identifier">r</span> <span class="ruby-operator">*</span> <span class="ruby-keyword kw">self</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">conjugate</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">abs2</span>; <span class="ruby-keyword kw">end</span>
|
1229
|
-
</pre>
|
1230
|
-
</div>
|
1231
|
-
</div>
|
1232
|
-
</div>
|
1233
|
-
<div class="method">
|
1234
|
-
<div class="title">
|
1235
|
-
<a name="M000560"></a><b>rotate_angle</b>()
|
1236
|
-
</div>
|
1237
|
-
<div class="sourcecode">
|
1238
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000560_source')" id="l_M000560_source">show source</a> ]</p>
|
1239
|
-
<div id="M000560_source" class="dyn-source">
|
1240
|
-
<pre>
|
1241
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 330</span>
|
1242
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rotate_angle</span>; <span class="ruby-identifier">amplitude</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>; <span class="ruby-keyword kw">end</span>
|
1243
|
-
</pre>
|
1244
|
-
</div>
|
1245
|
-
</div>
|
1246
|
-
</div>
|
1247
|
-
<div class="method">
|
1248
|
-
<div class="title">
|
1249
|
-
<a name="M000542"></a><b>round</b>()
|
1250
|
-
</div>
|
1251
|
-
<div class="sourcecode">
|
1252
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000542_source')" id="l_M000542_source">show source</a> ]</p>
|
1253
|
-
<div id="M000542_source" class="dyn-source">
|
1254
|
-
<pre>
|
1255
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 289</span>
|
1256
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round</span>; <span class="ruby-constant">Quaternion</span>(<span class="ruby-ivar">@re</span>.<span class="ruby-identifier">round</span>,<span class="ruby-ivar">@im</span>.<span class="ruby-identifier">round</span>,<span class="ruby-ivar">@jm</span>.<span class="ruby-identifier">round</span>,<span class="ruby-ivar">@km</span>.<span class="ruby-identifier">round</span>);<span class="ruby-keyword kw">end</span>
|
1257
|
-
</pre>
|
1258
|
-
</div>
|
1259
|
-
</div>
|
1260
|
-
</div>
|
1261
|
-
<div class="method">
|
1262
|
-
<div class="title">
|
1263
|
-
<a name="M000543"></a><b>round_D4</b>()
|
1264
|
-
</div>
|
1265
|
-
<div class="sourcecode">
|
1266
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000543_source')" id="l_M000543_source">show source</a> ]</p>
|
1267
|
-
<div id="M000543_source" class="dyn-source">
|
1268
|
-
<pre>
|
1269
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 290</span>
|
1270
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_D4</span>
|
1271
|
-
<span class="ruby-comment cmt"># round to D4 lattice</span>
|
1272
|
-
<span class="ruby-identifier">r1</span>=<span class="ruby-ivar">@re</span>.<span class="ruby-identifier">round</span>; <span class="ruby-identifier">a1</span>=<span class="ruby-ivar">@im</span>.<span class="ruby-identifier">round</span>; <span class="ruby-identifier">b1</span>=<span class="ruby-ivar">@jm</span>.<span class="ruby-identifier">round</span>; <span class="ruby-identifier">c1</span>=<span class="ruby-ivar">@km</span>.<span class="ruby-identifier">round</span>;
|
1273
|
-
<span class="ruby-identifier">q1</span>=<span class="ruby-constant">Quaternion</span>(<span class="ruby-identifier">r1</span>,<span class="ruby-identifier">a1</span>,<span class="ruby-identifier">b1</span>,<span class="ruby-identifier">c1</span>); <span class="ruby-identifier">d1</span>=(<span class="ruby-identifier">q1</span><span class="ruby-operator">-</span><span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">abs2</span>
|
1274
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">d1</span><span class="ruby-operator"><=</span><span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-value">4</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">q1</span>; <span class="ruby-keyword kw">end</span>
|
1275
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@re</span><span class="ruby-operator"><</span><span class="ruby-identifier">r1</span>; <span class="ruby-identifier">r2</span>=<span class="ruby-identifier">r1</span><span class="ruby-operator">-</span><span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>; <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">r2</span>=<span class="ruby-identifier">r1</span><span class="ruby-operator">+</span><span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>; <span class="ruby-keyword kw">end</span>
|
1276
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@im</span><span class="ruby-operator"><</span><span class="ruby-identifier">r1</span>; <span class="ruby-identifier">a2</span>=<span class="ruby-identifier">a1</span><span class="ruby-operator">-</span><span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>; <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">a2</span>=<span class="ruby-identifier">a1</span><span class="ruby-operator">+</span><span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>; <span class="ruby-keyword kw">end</span>
|
1277
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@jm</span><span class="ruby-operator"><</span><span class="ruby-identifier">r1</span>; <span class="ruby-identifier">b2</span>=<span class="ruby-identifier">b1</span><span class="ruby-operator">-</span><span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>; <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">b2</span>=<span class="ruby-identifier">b1</span><span class="ruby-operator">+</span><span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>; <span class="ruby-keyword kw">end</span>
|
1278
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@km</span><span class="ruby-operator"><</span><span class="ruby-identifier">r1</span>; <span class="ruby-identifier">c2</span>=<span class="ruby-identifier">c1</span><span class="ruby-operator">-</span><span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>; <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">c2</span>=<span class="ruby-identifier">c1</span><span class="ruby-operator">+</span><span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-value">2</span>; <span class="ruby-keyword kw">end</span>
|
1279
|
-
<span class="ruby-identifier">q2</span>=<span class="ruby-constant">Quaternion</span>(<span class="ruby-identifier">r2</span>,<span class="ruby-identifier">a2</span>,<span class="ruby-identifier">b2</span>,<span class="ruby-identifier">c2</span>); <span class="ruby-identifier">d2</span>=(<span class="ruby-identifier">q2</span><span class="ruby-operator">-</span><span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">abs2</span>
|
1280
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">d1</span><span class="ruby-operator"><=</span><span class="ruby-identifier">d2</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">q1</span>; <span class="ruby-keyword kw">else</span> <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">q2</span>; <span class="ruby-keyword kw">end</span>
|
1281
|
-
<span class="ruby-keyword kw">end</span>
|
1282
|
-
</pre>
|
1283
|
-
</div>
|
1284
|
-
</div>
|
1285
|
-
</div>
|
1286
|
-
<div class="method">
|
1287
|
-
<div class="title">
|
1288
|
-
<a name="M000590"></a><b>sin</b>()
|
1289
|
-
</div>
|
1290
|
-
<div class="description">
|
1291
|
-
<p>
|
1292
|
-
Trigonometric functions
|
1293
|
-
</p>
|
1294
|
-
</div>
|
1295
|
-
<div class="sourcecode">
|
1296
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000590_source')" id="l_M000590_source">show source</a> ]</p>
|
1297
|
-
<div id="M000590_source" class="dyn-source">
|
1298
|
-
<pre>
|
1299
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 499</span>
|
1300
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sin</span>
|
1301
|
-
<span class="ruby-comment cmt"># sin(r+uv)=sin r cosh v + u cos r sinh v</span>
|
1302
|
-
<span class="ruby-identifier">vec</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">vector</span>; <span class="ruby-identifier">v</span>=<span class="ruby-identifier">vec</span>.<span class="ruby-identifier">abs</span>; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span><span class="ruby-operator">==</span><span class="ruby-value">0</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Quaternion</span>(<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">sin</span>(<span class="ruby-ivar">@re</span>)); <span class="ruby-keyword kw">end</span>
|
1303
|
-
<span class="ruby-identifier">u</span> = <span class="ruby-identifier">vec</span><span class="ruby-operator">/</span><span class="ruby-identifier">v</span>; <span class="ruby-identifier">e</span>=<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">exp</span>(<span class="ruby-identifier">v</span>); <span class="ruby-identifier">er</span>=<span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-identifier">e</span>; <span class="ruby-identifier">c</span>=<span class="ruby-identifier">e</span><span class="ruby-operator">+</span><span class="ruby-identifier">er</span>; <span class="ruby-identifier">s</span>=<span class="ruby-identifier">e</span><span class="ruby-operator">-</span><span class="ruby-identifier">er</span>
|
1304
|
-
(<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">sin</span>(<span class="ruby-ivar">@re</span>)<span class="ruby-operator">*</span><span class="ruby-identifier">c</span><span class="ruby-operator">+</span><span class="ruby-identifier">u</span><span class="ruby-operator">*</span><span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">cos</span>(<span class="ruby-ivar">@re</span>)<span class="ruby-operator">*</span><span class="ruby-identifier">s</span>)<span class="ruby-operator">/</span><span class="ruby-value">2</span>
|
1305
|
-
<span class="ruby-keyword kw">end</span>
|
1306
|
-
</pre>
|
1307
|
-
</div>
|
1308
|
-
</div>
|
1309
|
-
</div>
|
1310
|
-
<div class="method">
|
1311
|
-
<div class="title">
|
1312
|
-
<a name="M000587"></a><b>sinh</b>()
|
1313
|
-
</div>
|
1314
|
-
<div class="sourcecode">
|
1315
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000587_source')" id="l_M000587_source">show source</a> ]</p>
|
1316
|
-
<div id="M000587_source" class="dyn-source">
|
1317
|
-
<pre>
|
1318
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 495</span>
|
1319
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sinh</span>; <span class="ruby-identifier">e</span>=<span class="ruby-identifier">exp</span>; <span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">e</span><span class="ruby-operator">-</span><span class="ruby-identifier">e</span>.<span class="ruby-identifier">inverse</span>)<span class="ruby-operator">/</span><span class="ruby-value">2</span>; <span class="ruby-keyword kw">end</span>
|
1320
|
-
</pre>
|
1321
|
-
</div>
|
1322
|
-
</div>
|
1323
|
-
</div>
|
1324
|
-
<div class="method">
|
1325
|
-
<div class="title">
|
1326
|
-
<a name="M000586"></a><b>sqrt</b>()
|
1327
|
-
</div>
|
1328
|
-
<div class="sourcecode">
|
1329
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000586_source')" id="l_M000586_source">show source</a> ]</p>
|
1330
|
-
<div id="M000586_source" class="dyn-source">
|
1331
|
-
<pre>
|
1332
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 494</span>
|
1333
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sqrt</span>; <span class="ruby-keyword kw">self</span><span class="ruby-operator">**</span>(<span class="ruby-value">0</span><span class="ruby-value">.5</span>); <span class="ruby-keyword kw">end</span>
|
1334
|
-
</pre>
|
1335
|
-
</div>
|
1336
|
-
</div>
|
1337
|
-
</div>
|
1338
|
-
<div class="method">
|
1339
|
-
<div class="title">
|
1340
|
-
<a name="M000592"></a><b>tan</b>()
|
1341
|
-
</div>
|
1342
|
-
<div class="sourcecode">
|
1343
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000592_source')" id="l_M000592_source">show source</a> ]</p>
|
1344
|
-
<div id="M000592_source" class="dyn-source">
|
1345
|
-
<pre>
|
1346
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 511</span>
|
1347
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tan</span>
|
1348
|
-
<span class="ruby-identifier">vec</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">vector</span>; <span class="ruby-identifier">v</span>=<span class="ruby-identifier">vec</span>.<span class="ruby-identifier">abs</span>; <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span><span class="ruby-operator">==</span><span class="ruby-value">0</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Quaternion</span>(<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">tan</span>(<span class="ruby-ivar">@re</span>)); <span class="ruby-keyword kw">end</span>
|
1349
|
-
<span class="ruby-identifier">u</span> = <span class="ruby-identifier">vec</span><span class="ruby-operator">/</span><span class="ruby-identifier">v</span>; <span class="ruby-identifier">e</span>=<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">exp</span>(<span class="ruby-identifier">v</span>); <span class="ruby-identifier">er</span>=<span class="ruby-value">1</span><span class="ruby-operator">/</span><span class="ruby-identifier">e</span>; <span class="ruby-identifier">c</span>=<span class="ruby-identifier">e</span><span class="ruby-operator">+</span><span class="ruby-identifier">er</span>; <span class="ruby-identifier">s</span>=<span class="ruby-identifier">e</span><span class="ruby-operator">-</span><span class="ruby-identifier">er</span>
|
1350
|
-
<span class="ruby-identifier">co</span>=<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">cos</span>(<span class="ruby-ivar">@re</span>); <span class="ruby-identifier">si</span>=<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">sin</span>(<span class="ruby-ivar">@re</span>); (<span class="ruby-identifier">si</span><span class="ruby-operator">*</span><span class="ruby-identifier">c</span><span class="ruby-operator">+</span><span class="ruby-identifier">u</span><span class="ruby-operator">*</span><span class="ruby-identifier">co</span><span class="ruby-operator">*</span><span class="ruby-identifier">s</span>)<span class="ruby-operator">/</span>(<span class="ruby-identifier">co</span><span class="ruby-operator">*</span><span class="ruby-identifier">c</span><span class="ruby-operator">-</span><span class="ruby-identifier">u</span><span class="ruby-operator">*</span><span class="ruby-identifier">si</span><span class="ruby-operator">*</span><span class="ruby-identifier">s</span>)
|
1351
|
-
<span class="ruby-keyword kw">end</span>
|
1352
|
-
</pre>
|
1353
|
-
</div>
|
1354
|
-
</div>
|
1355
|
-
</div>
|
1356
|
-
<div class="method">
|
1357
|
-
<div class="title">
|
1358
|
-
<a name="M000589"></a><b>tanh</b>()
|
1359
|
-
</div>
|
1360
|
-
<div class="sourcecode">
|
1361
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000589_source')" id="l_M000589_source">show source</a> ]</p>
|
1362
|
-
<div id="M000589_source" class="dyn-source">
|
1363
|
-
<pre>
|
1364
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 497</span>
|
1365
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tanh</span>; <span class="ruby-identifier">e</span>=<span class="ruby-identifier">exp</span>; <span class="ruby-identifier">e</span>=<span class="ruby-identifier">e</span><span class="ruby-operator">*</span><span class="ruby-identifier">e</span>; <span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">e</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>)<span class="ruby-operator">/</span>(<span class="ruby-identifier">e</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>); <span class="ruby-keyword kw">end</span>
|
1366
|
-
</pre>
|
1367
|
-
</div>
|
1368
|
-
</div>
|
1369
|
-
</div>
|
1370
|
-
<div class="method">
|
1371
|
-
<div class="title">
|
1372
|
-
<a name="M000531"></a><b>to_a</b>()
|
1373
|
-
</div>
|
1374
|
-
<div class="sourcecode">
|
1375
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000531_source')" id="l_M000531_source">show source</a> ]</p>
|
1376
|
-
<div id="M000531_source" class="dyn-source">
|
1377
|
-
<pre>
|
1378
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 246</span>
|
1379
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span>; <span class="ruby-keyword kw">return</span> [<span class="ruby-ivar">@re</span>, <span class="ruby-ivar">@im</span>, <span class="ruby-ivar">@jm</span>, <span class="ruby-ivar">@km</span>]; <span class="ruby-keyword kw">end</span>
|
1380
|
-
</pre>
|
1381
|
-
</div>
|
1382
|
-
</div>
|
1383
|
-
</div>
|
1384
|
-
<div class="method">
|
1385
|
-
<div class="title">
|
1386
|
-
<a name="M000529"></a><b>to_c</b>()
|
1387
|
-
</div>
|
1388
|
-
<div class="sourcecode">
|
1389
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000529_source')" id="l_M000529_source">show source</a> ]</p>
|
1390
|
-
<div id="M000529_source" class="dyn-source">
|
1391
|
-
<pre>
|
1392
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 244</span>
|
1393
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_c</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Complex</span>(<span class="ruby-ivar">@re</span>,<span class="ruby-ivar">@im</span>); <span class="ruby-keyword kw">end</span>
|
1394
|
-
</pre>
|
1395
|
-
</div>
|
1396
|
-
</div>
|
1397
|
-
</div>
|
1398
|
-
<div class="method">
|
1399
|
-
<div class="title">
|
1400
|
-
<a name="M000530"></a><b>to_c2</b>()
|
1401
|
-
</div>
|
1402
|
-
<div class="sourcecode">
|
1403
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000530_source')" id="l_M000530_source">show source</a> ]</p>
|
1404
|
-
<div id="M000530_source" class="dyn-source">
|
1405
|
-
<pre>
|
1406
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 245</span>
|
1407
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_c2</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Complex</span>(<span class="ruby-ivar">@jm</span>,<span class="ruby-ivar">@km</span>); <span class="ruby-keyword kw">end</span>
|
1408
|
-
</pre>
|
1409
|
-
</div>
|
1410
|
-
</div>
|
1411
|
-
</div>
|
1412
|
-
<div class="method">
|
1413
|
-
<div class="title">
|
1414
|
-
<a name="M000598"></a><b>to_s</b>()
|
1415
|
-
</div>
|
1416
|
-
<div class="sourcecode">
|
1417
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000598_source')" id="l_M000598_source">show source</a> ]</p>
|
1418
|
-
<div id="M000598_source" class="dyn-source">
|
1419
|
-
<pre>
|
1420
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 538</span>
|
1421
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
1422
|
-
<span class="ruby-identifier">s</span>=<span class="ruby-value str">""</span>
|
1423
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@re!</span>=<span class="ruby-value">0</span>; <span class="ruby-identifier">s</span>=<span class="ruby-ivar">@re</span>.<span class="ruby-identifier">to_s</span>; <span class="ruby-keyword kw">end</span>
|
1424
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@im!</span>=<span class="ruby-value">0</span>;
|
1425
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">s</span><span class="ruby-operator">==</span><span class="ruby-value str">""</span>; <span class="ruby-identifier">s</span>=<span class="ruby-identifier">sprintf</span>(<span class="ruby-value str">"%si"</span>, <span class="ruby-ivar">@im</span>);
|
1426
|
-
<span class="ruby-keyword kw">else</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@im</span><span class="ruby-operator">></span><span class="ruby-value">0</span>; <span class="ruby-identifier">s</span>=<span class="ruby-identifier">sprintf</span>(<span class="ruby-value str">"%s+%si"</span>,<span class="ruby-identifier">s</span>,<span class="ruby-ivar">@im</span>); <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">s</span>=<span class="ruby-identifier">sprintf</span>(<span class="ruby-value str">"%s-%si"</span>,<span class="ruby-identifier">s</span>,<span class="ruby-operator">-</span><span class="ruby-ivar">@im</span>); <span class="ruby-keyword kw">end</span>
|
1427
|
-
<span class="ruby-keyword kw">end</span>
|
1428
|
-
<span class="ruby-keyword kw">end</span>
|
1429
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@jm!</span>=<span class="ruby-value">0</span>;
|
1430
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">s</span><span class="ruby-operator">==</span><span class="ruby-value str">""</span>; <span class="ruby-identifier">s</span>=<span class="ruby-identifier">sprintf</span>(<span class="ruby-value str">"%sj"</span>, <span class="ruby-ivar">@jm</span>);
|
1431
|
-
<span class="ruby-keyword kw">else</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@jm</span><span class="ruby-operator">></span><span class="ruby-value">0</span>; <span class="ruby-identifier">s</span>=<span class="ruby-identifier">sprintf</span>(<span class="ruby-value str">"%s+%sj"</span>,<span class="ruby-identifier">s</span>,<span class="ruby-ivar">@jm</span>); <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">s</span>=<span class="ruby-identifier">sprintf</span>(<span class="ruby-value str">"%s-%sj"</span>,<span class="ruby-identifier">s</span>,<span class="ruby-operator">-</span><span class="ruby-ivar">@jm</span>); <span class="ruby-keyword kw">end</span>
|
1432
|
-
<span class="ruby-keyword kw">end</span>
|
1433
|
-
<span class="ruby-keyword kw">end</span>
|
1434
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@km!</span>=<span class="ruby-value">0</span>;
|
1435
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">s</span><span class="ruby-operator">==</span><span class="ruby-value str">""</span>; <span class="ruby-identifier">s</span>=<span class="ruby-identifier">sprintf</span>(<span class="ruby-value str">"%sk"</span>, <span class="ruby-ivar">@km</span>);
|
1436
|
-
<span class="ruby-keyword kw">else</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@km</span><span class="ruby-operator">></span><span class="ruby-value">0</span>; <span class="ruby-identifier">s</span>=<span class="ruby-identifier">sprintf</span>(<span class="ruby-value str">"%s+%sk"</span>,<span class="ruby-identifier">s</span>,<span class="ruby-ivar">@km</span>); <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">s</span>=<span class="ruby-identifier">sprintf</span>(<span class="ruby-value str">"%s-%sk"</span>,<span class="ruby-identifier">s</span>,<span class="ruby-operator">-</span><span class="ruby-ivar">@km</span>); <span class="ruby-keyword kw">end</span>
|
1437
|
-
<span class="ruby-keyword kw">end</span>
|
1438
|
-
<span class="ruby-keyword kw">end</span>
|
1439
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">s</span><span class="ruby-operator">==</span><span class="ruby-value str">""</span> ; <span class="ruby-identifier">s</span>=<span class="ruby-value str">"0"</span>; <span class="ruby-keyword kw">end</span>;
|
1440
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span>
|
1441
|
-
<span class="ruby-keyword kw">end</span>
|
1442
|
-
</pre>
|
1443
|
-
</div>
|
1444
|
-
</div>
|
1445
|
-
</div>
|
1446
|
-
<div class="method">
|
1447
|
-
<div class="title">
|
1448
|
-
<a name="M000554"></a><b>to_v</b>()
|
1449
|
-
</div>
|
1450
|
-
<div class="sourcecode">
|
1451
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000554_source')" id="l_M000554_source">show source</a> ]</p>
|
1452
|
-
<div id="M000554_source" class="dyn-source">
|
1453
|
-
<pre>
|
1454
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 314</span>
|
1455
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_v</span>; <span class="ruby-keyword kw">return</span> [<span class="ruby-ivar">@im</span>, <span class="ruby-ivar">@jm</span>, <span class="ruby-ivar">@km</span>]; <span class="ruby-keyword kw">end</span>
|
1456
|
-
</pre>
|
1457
|
-
</div>
|
1458
|
-
</div>
|
1459
|
-
</div>
|
1460
|
-
<div class="method">
|
1461
|
-
<div class="title">
|
1462
|
-
<a name="M000556"></a><b>unit_vector</b>()
|
1463
|
-
</div>
|
1464
|
-
<div class="sourcecode">
|
1465
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000556_source')" id="l_M000556_source">show source</a> ]</p>
|
1466
|
-
<div id="M000556_source" class="dyn-source">
|
1467
|
-
<pre>
|
1468
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 319</span>
|
1469
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unit_vector</span>
|
1470
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">is_real?</span>; <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Quaternion</span>(<span class="ruby-value">0</span>,<span class="ruby-value">1</span>); <span class="ruby-keyword kw">end</span>
|
1471
|
-
<span class="ruby-identifier">m</span>=<span class="ruby-constant">Math</span><span class="ruby-operator">::</span><span class="ruby-identifier">sqrt</span>((<span class="ruby-ivar">@im</span><span class="ruby-operator">*</span><span class="ruby-ivar">@im</span><span class="ruby-operator">+</span><span class="ruby-ivar">@jm</span><span class="ruby-operator">*</span><span class="ruby-ivar">@jm</span><span class="ruby-operator">+</span><span class="ruby-ivar">@km</span><span class="ruby-operator">*</span><span class="ruby-ivar">@km</span>).<span class="ruby-identifier">to_f</span>)
|
1472
|
-
<span class="ruby-constant">Quaternion</span>(<span class="ruby-value">0</span>,<span class="ruby-ivar">@im</span><span class="ruby-operator">/</span><span class="ruby-identifier">m</span>,<span class="ruby-ivar">@jm</span><span class="ruby-operator">/</span><span class="ruby-identifier">m</span>,<span class="ruby-ivar">@km</span><span class="ruby-operator">/</span><span class="ruby-identifier">m</span>);
|
1473
|
-
<span class="ruby-keyword kw">end</span>
|
1474
|
-
</pre>
|
1475
|
-
</div>
|
1476
|
-
</div>
|
1477
|
-
</div>
|
1478
|
-
<div class="method">
|
1479
|
-
<div class="title">
|
1480
|
-
<a name="M000552"></a><b>vector</b>()
|
1481
|
-
</div>
|
1482
|
-
<div class="sourcecode">
|
1483
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000552_source')" id="l_M000552_source">show source</a> ]</p>
|
1484
|
-
<div id="M000552_source" class="dyn-source">
|
1485
|
-
<pre>
|
1486
|
-
<span class="ruby-comment cmt"># File lib/facets/more/quaternion.rb, line 312</span>
|
1487
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">vector</span>; <span class="ruby-constant">Quaternion</span>(<span class="ruby-value">0</span>,<span class="ruby-ivar">@im</span>,<span class="ruby-ivar">@jm</span>,<span class="ruby-ivar">@km</span>); <span class="ruby-keyword kw">end</span>
|
1488
|
-
</pre>
|
1489
|
-
</div>
|
1490
|
-
</div>
|
1491
|
-
</div>
|
1492
|
-
</div>
|
1493
|
-
|
1494
|
-
</div>
|
1495
|
-
|
1496
|
-
</body>
|
1497
|
-
</html>
|