xyz_square

marxs.math.geometry.xyz_square(geometry, r_factor=1)[source] [edit on github]

Generate Eukledian positions for the corners of a square.

The square is centered on the center of the object and the edges are given by v_y and v_z.

Parameters:
r_factorfloat

Scaling factor for the square.

Returns:
boxnp.array of shape (4, 3)

Eukledian coordinates of the corners of the square in 3d space.