public object VisitCylinder(Cylinder visited) { return(new BoundingBoxVisitor().VisitCylinder(visited)); }
public Body Visit(Cylinder element) { return(new RectangularCuboid(element.Position, 2 * element.Radius, 2 * element.Radius, element.SizeZ)); }
public object VisitCylinder(Cylinder visited) { var d = 2 * visited.Radius; return(new RectangularCuboid(visited.Position, d, d, visited.SizeZ)); }
public Body VisitCylinder(Cylinder cylinder) { return(new RectangularCuboid(cylinder.Position, 2 * cylinder.Radius, 2 * cylinder.Radius, cylinder.SizeZ)); }