pos: delete vocab from unmaintained
It was only useful with the self vocab, which is long gone.char-rename
parent
6819db7e8f
commit
60044b411e
|
@ -1 +0,0 @@
|
|||
Eduardo Cavazos
|
|
@ -1,22 +0,0 @@
|
|||
|
||||
USING: kernel math math.functions math.vectors sequences self
|
||||
accessors ;
|
||||
|
||||
IN: pos
|
||||
|
||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
TUPLE: pos val ;
|
||||
|
||||
C: <pos> pos
|
||||
|
||||
: pos> ( -- val ) self> val>> ;
|
||||
|
||||
: >pos ( val -- ) self> val<< ;
|
||||
|
||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
: distance ( pos pos -- n ) val>> swap val>> v- [ sq ] map-sum sqrt ;
|
||||
|
||||
: move-by ( point -- ) pos> v+ >pos ;
|
||||
|
Loading…
Reference in New Issue