Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

update readme with quick usage

Edgar Ribadcf1732774f7
diff --git a/README.rst b/README.rst
index 3d3ae3e93..b3de9da3e 100644
--- a/README.rst
+++ b/README.rst
@@ -3,6 +3,20 @@ torchgeometry
The torchgeometry package consists of functionalities to make Geometric Computer Vision differentiable.
+Quick Usage
+===========
+
+.. code:: python
+
+ import torch
+ import torchgeometry as dgm # differential geometry
+
+ x_rad = dgm.pi * torch.rand(1, 3, 3)
+ x_deg = dgm.rad2deg(x_rad)
+
+ torch.allclose(x_rad, dgm.deg2rad(x_deg)) # True
+
+
Installation
============