git-svn-id: svn://db.shs.com.ru/libs@696 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-12-12 18:44:28 +00:00
parent 1e73f5e41a
commit a4c329a07b
2 changed files with 2 additions and 2 deletions

View File

@@ -265,7 +265,7 @@ Mesh * Primitive::cylinder(int segments, float radius, float height, float end_a
Mesh * Primitive::arrow(int segments, float thick, float angle) {
double cone_r = 1.5 * thick;
double cone_h = 1.5 * cone_r / tan(angle * deg2rad);
double cone_h = 2. * cone_r / tan(angle * deg2rad);
Mesh * ret = new Mesh();
Mesh * m = Primitive::cylinder(segments, thick / 2., 1. - cone_h);
ret->append(m);