public class ArrowShapeBuilder extends BaseShapeBuilder
MeshPartBuilder
.Constructor and Description |
---|
ArrowShapeBuilder() |
Modifier and Type | Method and Description |
---|---|
static void |
build(MeshPartBuilder builder,
float x1,
float y1,
float z1,
float x2,
float y2,
float z2,
float capLength,
float stemThickness,
int divisions)
Build an arrow
|
public static void build(MeshPartBuilder builder, float x1, float y1, float z1, float x2, float y2, float z2, float capLength, float stemThickness, int divisions)
x1
- source xy1
- source yz1
- source zx2
- destination xy2
- destination yz2
- destination zcapLength
- is the height of the cap in percentage, must be in (0,1)stemThickness
- is the percentage of stem diameter compared to cap diameter, must be in (0,1]divisions
- the amount of vertices used to generate the cap and stem ellipsoidal basesCopyright © 2017. All rights reserved.