Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the vectors Reference Manual, generated automatically by Declt version 3.0 "Montgomery Scott" on Tue Dec 22 15:26:51 2020 GMT+0.
• Introduction | What vectors is all about | |
• Systems | The systems documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
All these functions are inside of package #:vec
Function
vector-of type &rest elemnets
Create a vector of type type
containing elements
.
Function
slice vector &optional start end
Create a slice of a vector
, which is a subvector from start
to end
of vector
and points to the same entries as vector
.
Macro
vector-bind list vec &body body
list
: A variable list
vec
: A vector
Bind elements of vec
to variables in list
.
Function
mapvs size function vec &rest vecs
For the first size
entries of vec
and vecs
call function
on an element at the same position and write it at the same position of vec
.
Function
mapvec function vec &rest vecs
Same as apply #'map 'vector vec vecs
.
Function
mapv function vec &rest vecs
Same as apply #'map-into vec vecs
.
Function
vec-copy vec
Create a new vector with the same contents as vec
.
Function
setv vec vec0
Set all elements of vec
to vec0
without creating a new vector.
In following each pair of functions do the same, but the first version of the function create a new vector, the second write the result to the first vector.
Addition and subtraction only take vectors as arguments, multiplication and division only take a vector for the first argument.
;;Addition
v+
incv
;;Subtraction
v-
decv
;;Multiplication
v*
mulv
;;Division
v/
divv
Function
absvec vec
The length of the vector vec
.
Function
normalize vec
Normalize the vector vec
and get it.
Function
unitvec vec
A new unit vector with the direction of vec
.
Same as (normalize (copy-vec vec))
.
Function
distance vec vec0
Distance between the vectors vec
and vec0
Function
scalar vec vec0
The scalar product of vec
and vec0
.
Function
unit-scalar vec vec0
Optimized version of (scalar (unitvec vec) (unitvec vec0))
.
Function
angle vec vec0
Angle between vec
and vec0
.
Function
cross3 vec vec0
Cross product of the 3D-vectors vec
and vec0
.
orthogonal-factor
orthogonal-vector
line-vector
line-distance
Next: Files, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The vectors system |
Fabio Krapohl <fabio.u.krapohl@fau.de>
LLGPL
Some utilities for using vectors
vectors.asd (file)
vectors.lisp (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The vectors.asd file | ||
• The vectors/vectors.lisp file |
Next: The vectors/vectors․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
vectors.asd
vectors (system)
Previous: The vectors․asd file, Up: Lisp files [Contents][Index]
vectors (system)
vectors.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The vec package |
vectors.lisp (file)
common-lisp
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported macros | ||
• Exported functions |
Next: Exported functions, Previous: Exported definitions, Up: Exported definitions [Contents][Index]
vectors.lisp (file)
Previous: Exported macros, Up: Exported definitions [Contents][Index]
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
vectors.lisp (file)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal macros |
Previous: Internal definitions, Up: Internal definitions [Contents][Index]
vectors.lisp (file)
vectors.lisp (file)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | F L V |
---|
Jump to: | F L V |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | A C D F I L M N O S U V |
---|
Jump to: | A C D F I L M N O S U V |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | P S V |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
P | |||
Package, vec : | The vec package | ||
| |||
S | |||
System, vectors : | The vectors system | ||
| |||
V | |||
vec : | The vec package | ||
vectors : | The vectors system | ||
|
Jump to: | P S V |
---|