Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to calculate the half extents of a cube?

Tags:

math

formula

I wish to know what formula should I use to get half extents of cube or rectangular cube.
The library I use to make graphical objects requires this cube half extents (which I don't really know what is).

like image 301
Irrmich Avatar asked Mar 16 '23 12:03

Irrmich


1 Answers

I've finally got it. Cube half extents is a vector representing half size of the cube along its local axis. Example : a cube having (1,1,1) as size have (0.5,0.5,0.5) as half extents.

like image 60
Irrmich Avatar answered Apr 28 '23 10:04

Irrmich