[0.8, 0, -0.6],
])
# Initialize counters for each direction
left = right = up = down = front = back = 0
# Loop through the list of vectors
for vec in vectors:
x, y, z = vec
# Check the primary direction of the vector
primary_direction = np.argmax(np.abs(vec))
if primary_direction == 0: # x-axis
if x > 0:
right += 1
elif x < 0:
left += 1
elif primary_direction == 1: # y-axis
if y > 0:
up += 1
elif y < 0:
down += 1
elif primary_direction == 2: # z-axis
if z > 0:
front += 1
elif z < 0:
back += 1
# Display the results
print(f"Left: {left}, Right: {right}, Up: {up}, Down: {down}, Front: {front}, Back: {back}")