> For the complete documentation index, see [llms.txt](https://docs.cherax.vip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherax.vip/lua-documentation/api-reference/classes/vec3.md).

# vec3

@property float x&#x20;

@property float y&#x20;

@property float z

@constructor vec3()&#x20;

@constructor vec3(float, float, float)

@method vec3 \_\_add(vec2|vec3|float)&#x20;

@method vec3 \_\_sub(vec2|vec3|float)

&#x20;@method vec3 \_\_mul(vec2|vec3|float)&#x20;

@method vec3 \_\_div(vec2|vec3|float)&#x20;

@method bool \_\_eq(vec3)&#x20;

@method bool \_\_lt(vec3)&#x20;

@method bool \_\_le(vec3)&#x20;

@method string \_\_tostring()&#x20;

@method float length()&#x20;

@method float distance(vec3)
