Skip to content

Commit ecec938

Browse files
authored
Update README.md
1 parent a040dfd commit ecec938

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ Or install it yourself as:
2020

2121
## Usage
2222

23-
All you need to do is `require 'vecmath'` to use `Vec2D` and `Vec3D` classes in your application (NB: `:to_vertex` functionality depends on classes not currently available)
23+
All you need to do is `require 'vecmath'` to use `Vec2D` and `Vec3D` classes in your application.
24+
For `:to_vertex` functionality you need to create a renderer:-
25+
```
26+
@renderer = AppRender.new(graphics) # where graphics is instance of PGraphics
27+
# Usage
28+
vec.to_vertex(@renderer)
29+
```
2430

2531
## Development
2632

0 commit comments

Comments
 (0)