mark code-blocks in 2d/3d docs

This commit is contained in:
Aman Gupta 2015-09-20 18:24:49 -07:00
commit cd40137d1e
2 changed files with 4 additions and 0 deletions

View file

@ -18,6 +18,8 @@ import strutils
## ##
## Quick start example: ## Quick start example:
## ##
## .. code-block:: nim
##
## # Create a matrix which first rotates, then scales and at last translates ## # 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) ## var m:Matrix2d=rotate(DEG90) & scale(2.0) & move(100.0,200.0)

View file

@ -23,6 +23,8 @@ import times
## ##
## Quick start example: ## Quick start example:
## ##
## .. code-block:: nim
##
## # Create a matrix which first rotates, then scales and at last translates ## # Create a matrix which first rotates, then scales and at last translates
## ##
## var m:Matrix3d=rotate(PI,vector3d(1,1,2.5)) & scale(2.0) & move(100.0,200.0,300.0) ## var m:Matrix3d=rotate(PI,vector3d(1,1,2.5)) & scale(2.0) & move(100.0,200.0,300.0)