private static YoGraphicCylinder yoGraphicCylinderFromMessage(String name, YoVariable<?>[] vars, double[] consts, AppearanceDefinition appearance) { return new YoGraphicCylinder(name, (YoDouble) vars[0], (YoDouble) vars[1], (YoDouble) vars[2], (YoDouble) vars[3], (YoDouble) vars[4], (YoDouble) vars[5], appearance, consts[0]); }
/** {@inheritDoc} */ @Override public YoGraphicCylinder duplicate(YoVariableRegistry newRegistry) { return new YoGraphicCylinder(getName(), base.duplicate(newRegistry), vector.duplicate(newRegistry), appearance, lineThickness); }
return new YoGraphicCylinder(name, (DoubleYoVariable) vars[0], (DoubleYoVariable) vars[1], (DoubleYoVariable) vars[2], (DoubleYoVariable) vars[3], (DoubleYoVariable) vars[4], (DoubleYoVariable) vars[5], appearance, consts[0]);
currentTimeLineVector.set(new Vector3D(0.0, 1.0, 0.0)); currentTimeLineViz = new YoGraphicCylinder("currentTimeLine", yoFramePointCurrentTimeLineOrigin, currentTimeLineVector, YoAppearance.LightBlue(), 0.03);