documentation for fancymath

This commit is contained in:
2025-10-22 11:30:22 -05:00
parent 41e606e314
commit 3bc4958b04
7 changed files with 171 additions and 0 deletions

24
doc/intro.rst Normal file
View File

@@ -0,0 +1,24 @@
Introduction
============
Fancymath package includes vector operations in a simple implementation
of a 3D vector class.
Example
-------
The following Python session shows examples of
the use of the Vector class::
>>> from fancymath.vector import Vector
>>> u = Vector(1, 2, 0.5)
>>> print(u)
Vector(x=1, y=2, z=0.5)
>>> u.abs()
2.29128784747792
>>> v = Vector(0, 1, 2)
>>> u.dot(v)
3.0
>>> u.angle(v)
0.945250237728822
See the reference documentation for more details.