Samosas

Why are samosas in a triangular shape? Is there any math or logic behind it? I do not care... It's very tasty like this!