Methods

dimension ( -- dimension )  returns number of the vector coordinates

isZero ( -- condition )  checks if all vector coordinates are exactly zero

makeRange ( -- range )  returns a range pointing to all coordinates

firstIter ( -- iterator )  returns an iterator to the first coordinate

lastIter ( -- iterator )  returns an iterator to the last coordinate

endIter ( -- iterator )  returns an iterator to a non-existing element that is the next for lastIter

Free functions

makeVector ( enumerable -- vector )  creates a vector with the coordinates from an enumerable

cross ( vector0 vector1 -- vector2 )  returns cross-product of 3D vectors

dot ( vector0 vector1 -- number )  returns dot-product of vectors

neg ( vector0 -- vector1 )  returns a vector's reverse

@ ( index vector -- value )  returns a coordinate of a vector by index

! ( value index vector -- )  sets a coordinate of a vector by index

+ ( vector0 vector1 -- vector2 )  adds vectors

- ( vector0 vector1 -- vector2 )  subtracts vectors

* ( vector0 number -- vector1 )  multiplies a vector by a number

/ ( vector0 number -- vector1 )  divides a vector by a number

= ( vector0 vector1 -- condition )  compares vectors coordinate-wise

Tags

VECTOR