diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-09-21 11:58:38 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-09-21 11:58:38 +0200 |
commit | 08f9baeddcdfeef67ad52ae4bc47046da587acd8 (patch) | |
tree | 13875ec50138e8fde6cf65aac9f463178373a455 /lib/pure/basic2d.nim | |
parent | 492f5eb7045cb6cd2a3835f5bfcb09c35bc73e40 (diff) | |
parent | cd40137d1e5124e6cbac0922b93c076b3a714e23 (diff) | |
download | Nim-08f9baeddcdfeef67ad52ae4bc47046da587acd8.tar.gz |
Merge pull request #3352 from tmm1/fix-doc-typos
Fix some minor documentation typos
Diffstat (limited to 'lib/pure/basic2d.nim')
-rw-r--r-- | lib/pure/basic2d.nim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/pure/basic2d.nim b/lib/pure/basic2d.nim index ad8f8653d..7d74424fa 100644 --- a/lib/pure/basic2d.nim +++ b/lib/pure/basic2d.nim @@ -18,6 +18,8 @@ import strutils ## ## Quick start example: ## +## .. code-block:: nim +## ## # Create a matrix which first rotates, then scales and at last translates ## ## var m:Matrix2d=rotate(DEG90) & scale(2.0) & move(100.0,200.0) @@ -93,11 +95,11 @@ let IDMATRIX*:Matrix2d=matrix2d(1.0,0.0,0.0,1.0,0.0,0.0) ## Quick access to an identity matrix ORIGO*:Point2d=point2d(0.0,0.0) - ## Quick acces to point (0,0) + ## Quick access to point (0,0) XAXIS*:Vector2d=vector2d(1.0,0.0) - ## Quick acces to an 2d x-axis unit vector + ## Quick access to an 2d x-axis unit vector YAXIS*:Vector2d=vector2d(0.0,1.0) - ## Quick acces to an 2d y-axis unit vector + ## Quick access to an 2d y-axis unit vector # *************************************** |