Skip to content

Commit

Permalink
Update docs/lang/articles/math/math_module.md
Browse files Browse the repository at this point in the history
  • Loading branch information
feisuzhu authored Jun 18, 2024
1 parent 5446299 commit aa1ec6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/lang/articles/math/math_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ u = v.rraa # vec4(1, 1, 2, 2)
- `ti.types.vector` is a function that accepts an integer and a primitive type and returns a vector type. For example: `vec5f = ti.types.vector(5, float)`. `vec5f` can then be used to instantiate 5D vectors or annotate data types of function arguments and struct members:
```python
vec5f = ti.types.vector(5, float)

@ti.kernel
def test(v: vec5f):
print(v.xyz)
Expand Down

0 comments on commit aa1ec6e

Please sign in to comment.