text
stringlengths
5.71k
33.7k
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QFile> #include <QDesktopServices> #include <QFileDialog> #include <QDir> #include <QJsonDocument> #include <QJsonArray> #include <algorithm> const int CURRENT_CONFIG_VER = 2; mainWindow::mainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::main...
// Copyright <NAME> 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at // http://www.boost.org/LICENSE_1_0.txt) #include "fmidi/fmidi.h" #include "fmidi/fmidi_util.h" #include "fmidi/fmidi_internal.h" #include "fmidi/u_memstream.h" #...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrDefaultPathRenderer.h" #include "GrContext.h" #include "GrDrawState.h" #include "GrPathUtils.h" #include "SkString.h" #include "SkStrokeRec.h" #include "SkTrace.h...
/* Meddly: Multi-terminal and Edge-valued Decision Diagram LibrarY. Copyright (C) 2009, Iowa State University Research Foundation, Inc. This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwar...
//###################################################################### // // GraspIt! // Copyright (C) 2002-2009 Columbia University in the City of New York. // All rights reserved. // // GraspIt! is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as publi...
#include "VMSAv8TranslationMap.h" #include <util/AutoLock.h> #include <util/ThreadAutoLock.h> #include <vm/vm_priv.h> #include <vm/vm_page.h> static constexpr uint64_t kPteAddrMask = (((1UL << 36) - 1) << 12); static constexpr uint64_t kPteAttrMask = ~(kPteAddrMask | 0x3); static constexpr uint64_t kAttrSWDBM = (1UL...
/*! @author <NAME>, <NAME> */ #include "AssimpSceneLoader.h" #include <cnoid/SceneLoader> #include <cnoid/SceneDrawables> #include <cnoid/MeshFilter> #include <cnoid/ImageIO> #include <cnoid/Exception> #include <cnoid/NullOut> #include <cnoid/UTF8> #include <cnoid/stdx/filesystem> #include <cnoid/stdx/optional> #inc...
#include "Render.hpp" #include <easylogging++.h> #include <optick.h> #include <RmlUi/Core.h> #include <RmlUi/Lua.h> #include <RmlUi/Debugger.h> #include "Shader.hpp" #include "AssetManager.hpp" #include "Event.hpp" #include "DebugInfo.hpp" #include "Game.hpp" #include "World.hpp" #include "GameState.hpp" #include "Re...
/* SymbolicC++ : An object oriented computer algebra system written in C++ Copyright (C) 2008 <NAME> and <NAME> This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 o...
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
//----------------------------------------------------------------------------- // File: DXUTEffectMap.cpp // // Desc: Maps the set of standard semantics and annotations to a collection // of ID3DXEffect objects. // // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------...
#include "ParticleManager.h" #include <cassert> #include "Emiter.h" #include "ParticleFlyweight.h" #include "../TinyXML/tinyxml.h" #include <string> #include "Entity.h" #include "Game.h" ParticleManager* ParticleManager::m_sParticleInstance = nullptr; ParticleManager* ParticleManager::GetParticleInstance(void) { if...
//===--- GenThunk.cpp - IR Generation for Method Dispatch Thunks ----------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/* * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must * be be distributed together with this source. All other rights reserved. * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY ...
#include <fstream> #include <iostream> #include <algorithm> #include <thread> #include <numeric> #include <boost/lexical_cast.hpp> #include <boost/filesystem/operations.hpp> #include <succinct/mapper.hpp> #include <stxxl/vector> #include <stxxl/io> #include <stxxl/sort> #include "configuration.hpp" #include "index_...
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include "NVEncoder...
// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <fuchsia/ledger/cloud/cpp/fidl.h> #include <lib/async-loop/cpp/loop.h> #include <lib/callback/waiter.h> #include <lib/fidl/cpp/optional.h> #includ...
/******************************************************************************* * * MIT License * * Copyright (c) 2019 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
#include "editor.hpp" #include "control-icons.hpp" using namespace blit; Editor::Editor(blit::Point draw_offset, Palette *palette) { this->palette = palette; this->draw_offset = draw_offset; buffer.palette = palette->entries; } bool Editor::save() { return buffer.save(current_file) && file_exists(cur...
// // Copyright (c) 2017 Regents of the SIGNET lab, University of Padova. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyrigh...
#include "ros_odrive/odrive.hpp" using namespace std; std::string LEFT_AXIS = "axis0"; std::string RIGHT_AXIS = "axis1"; Json::Value odrive_json; bool targetJsonValid = false; odrive_endpoint *endpoint = NULL; // Args std::string odom_frame, base_frame; int encoder_cpr; float base_width; float wheel_radius; // Cal...
#include <fstream> #include <iostream> #include "define.h" #include <Eigen/SparseCholesky> #include <Eigen/CholmodSupport> #include <Eigen/Geometry> #include <pcl/common/transforms.h> #include <pcl/common/time.h> #include <pcl/io/io.h> #include <pcl/io/ply_io.h> #include <pcl/io/pcd_io.h> #include <boost/thread/thr...
/*---------------------------------------------------------------- Raven Library Source Code Copyright (c) 2008-2020 the Raven Development Team ------------------------------------------------------------------ Soil Heat Conduction convention assumes conduction is positive downward -------------------------------...
// // bigint.cc // /**************************************************************** The author of this software is <NAME>. Copyright (C) 1998, 1999 by Lucent Technologies All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is here...
// Begin CVS Header // $Source: /fs/turing/cvs/copasi_dev/copasi/optimization/COptMethodEP.cpp,v $ // $Revision: 1.25 $ // $Name: Build-33 $ // $Author: shoops $ // $Date: 2010/09/02 14:30:57 $ // End CVS Header // Copyright (C) 2010 by <NAME>, Virginia Tech Intellectual // Properties, Inc., University of He...
#include "database.hpp" #include "exception.hpp" #include <iostream> int find_insert_index(vector<Gadget*>& gadget_list, Gadget* gadget){ int count= gadget_list.size(); int first = 0; int curr; while(count > 0){ curr = first; curr += count/2; if( gadget_list.at(curr)->lthan(*g...
/* ----------------------------------------------------------------------------- KG game engine (http://katoun.github.com/kg_engine) is made available under the MIT License. Copyright (c) 2006-2013 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated docu...
/** * @file vorbisencode.cpp * @brief Vorbis encoding routine routine for Indra. * * $LicenseInfo:firstyear=2000&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of th...
#include <fat32.h> #include <common.h> #include <disk.h> #include <devices.h> #include <string.h> #include <vm.h> #include <ctype.h> #include <spinlock.h> #include <stat.h> Spinlock fatlock {"fatlock"}; // arg name should have enough space // return size read static int read_lfn(union fat_dirent* dp, char* name) { ...
#include <igl/opengl/glfw/Viewer.h> #include <igl/writeOBJ.h> #include <igl/barycenter.h> #include <igl/readOFF.h> #include <igl/readDMAT.h> #include <igl/writeDMAT.h> #include <igl/readOBJ.h> #include <igl/jet.h> #include <igl/slice.h> #include <igl/boundary_facets.h> #include <json.hpp> #include <igl/Timer.h> #includ...
/** Test the robustness of oscpkt. build with: g++ -O3 -Wall -W -I. oscpkt/oscpkt_test.cc cl.exe /Zi /EHsc /I. oscpkt/oscpkt_test.cc */ #define OSCPKT_TEST #define OSCPKT_OSTREAM_OUTPUT #define OSCPKT_TEST_UDP //define OSCPKT_DEBUG #include <iostream> void hexdump(std::ostream &os, const void *s_voi...
#include <imgui/imgui.h> #include <imgui/imgui_impl_glfw.h> #include <imgui/imgui_impl_opengl3.h> #include <imnodes/imnodes.h> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <spdlog/spdlog.h> #include <iostream> #include <rang.h> #include <chrono> #include "orbital/space_body.h" #include "util/defines.h" ...
#include "TOP_Greedy.hpp" #include "../common/Utils.hpp" #include <algorithm> #include <iostream> #include <vector> #include <fstream> using namespace std; /************** * Declaration * **************/ /** * Return the distance between one point p and the last one inserted into a specified car * * @param in co...
#include <QtCore> #include <QtWidgets> #include <random> #include "window.h" #include "soundchanges.h" #include "highlighter.h" #include "affixerdialog.h" Window::Window() { QWidget *mainwidget = new QWidget; setCentralWidget(mainwidget); m_layout = new QHBoxLayout; m_leftlayout = new QVBoxLayout; ...
/// \file /// \brief This file implements the landmark detection code and data association /// /// SUBSCRIBES: /// scan (sensor_msgs/LaserScan) - Topic where laser scan messages are published /// filter_output (nuslam/FilterOutput) - Output from the EKF filter about the robot state and /// ...
#include "VideoWindow.h" #include "MpvCommands.h" #include "ProgramOptions.h" #include "TraceLogging.h" #include "Util.h" #include "Jargon/StringUtilities.h" #include "Jargon/Math/Utilities.h" #include <algorithm> #include <cassert> #include <string> const char* VideoWindow::DefaultWindowTitle = "Jargon...
/* libs/graphics/sgl/SkScalerContext.cpp ** ** Copyright 2006, Google Inc. ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** ** http://www.apache.org/licenses/LICENSE-2.0 ** ** U...
#ifdef MSVC #define _SCL_SECURE_NO_WARNINGS // stx::btree #endif #include <libdariadb/flags.h> #include <libdariadb/storage/memstorage/memchunk.h> #include <libdariadb/storage/memstorage/memstorage.h> #include <libdariadb/storage/memstorage/timetrack.h> #include <libdariadb/storage/settings.h> #include <libdariadb/time...
#include <xx_three/xx_three.h> #include <gfx-pbr/Api.h> #include <gfx-obj/Api.h> #include <ecs/ECS.hpp> #include <stl/vector.hpp> static string lights_input = R"'( //SAMPLER2D(s_tiles, 7); //SAMPLER2D(s_lights, 8); #define s_tiles s_user0 #define s_lights s_user1 )'"; static string lights_fragment = R"'( //#defin...
// Begin CVS Header // $Source: /fs/turing/cvs/copasi_dev/copasi/report/CCopasiObject.cpp,v $ // $Revision: 1.90 $ // $Name: Build-33 $ // $Author: shoops $ // $Date: 2010/02/10 19:07:50 $ // End CVS Header // Copyright (C) 2010 by <NAME>, Virginia Tech Intellectual // Properties, Inc., University of Heidelb...
/* Source file for the GAPS quaternion class */ /* Include files */ #include "R3Shapes/R3Shapes.h" /* Public variables */ const R3Quaternion R3null_quaternion(0.0, 0.0, 0.0, 0.0); const R3Quaternion R3zero_quaternion(0.0, 0.0, 0.0, 0.0); const R3Quaternion R3identity_quaternion(1.0, 0.0, 0.0, 0.0); /* Public...
//----------------------------------*-C++-*----------------------------------// /** * @file test_TWIGL.cc * @author robertsj * @date Apr 4, 2012 * @brief Implements the TWIGL kinetics benchmark */ //---------------------------------------------------------------------------// // LIST OF TEST FUNCTIONS #d...
using namespace std; #include <iostream> #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <stdbool.h> #include <unistd.h> #include "TransfertAXI.h" #include "ConfigureFIRFPGA.h" #include "ConfigureVolumes.h" #include "config_du_system.h" #include "GereLed.h" #include "donnees_FIR.h" #include "Gere...
/*********************************************************************************************************************** * LK, Copyright (c) 2008-2017, Alliance for Sustainable Energy, LLC. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided...
#include "main.h" #include "stdafx.h" void deleteImageHandle1(std::vector<int> &vHandle) { for (size_t i = 0; i < vHandle.size(); i++) { DeleteGraph(vHandle[i]); } } int syatekimain(int font, int bgm, int effect, int calling_check) { int windowFlag = 0; // 現在のウィンドウを管理するフラグ int FramePerSecond = 60; //fps in...
/* * GStreamer * Copyright (C) 2019 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. *...
/* BSD 3-Clause License * * Copyright (c) 2020, FriederPankratz <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above ...
#include <iostream> #define GLFW_INCLUDE_NONE #include <GLFW/glfw3.h> #include <GL/glew.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include "../lib/Initialization.h" #include "../lib/Shader.h" #include "../lib/SimpleModel.h" #include "../lib/FloatCam.h" using namespace std; bool wireframe = f...
#include "vorbis/vorbisfile.h" #include "VorbisWaveDecoder.h" #include <math.h> #include <string.h> #include <stdlib.h> #include "WaveIntf.h" #include "SysInitIntf.h" #include "StorageIntf.h" #include "DebugIntf.h" #include <algorithm> static const bool FloatExtraction = false; // true if output format is IEEE 32-bit...
#include "VegaMain.h" #include "Tournament.h" extern int filter[8][2]; // [][0]=on/off status, [][1]=start column struct FontListDisplay : Display { virtual void Paint(Draw& w, const Rect& r, const Value& q, Color ink, Color paper, dword style) const { Font fnt = Courier(12); //Font(q, r...
// Copyright (c) 2011-2015 The Cryptonote developers // Copyright (c) 2014-2015 XDN developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chaingen.h" #include <vector> #include <iostream> #include <stdint.h> ...
#include <gui/win/overlapped_window.h> #include <gui/draw/diagram.h> #include <gui/core/grid.h> #ifdef WIN32 #include <math.h> #endif // GUIPP_WIN using namespace gui; using namespace gui::draw; using namespace gui::draw::diagram; template<typename T> struct sinus_data_t { sinus_data_t (T delta = 0) : delta(...
#include <map> #include <iostream> #include <vector> #include <cassert> #include <functional> #include "rational.hpp" #include "big_int.hpp" using namespace std; /////////////////////// GLOBAL CONFIGURATIONS //////////////////////// // Coefficients type typedef Rational<Num> F; // Rational numbers, also `...
/* lax42.cpp Author: <NAME> (UNM) Description: C++ implementation of the algorithm developed by <NAME>. */ #include <pybind11/pybind11.h> #include <pybind11/numpy.h> #include <vector> #include <tuple> #include <limits> #include <cmath> #include <iostream> const double MAXSTEPINC = 1.2; // maximum increasing factor for...
#include "sys.h" #define RGB_COLOR(r, g, b) (r | g << 8 | b << 16 | 255 << 24) #define PROC_TERRAIN_TYPE "terrain" #define PROC_TERRAIN_VERSION "1.0" void ProcTerrain::loadConfig(std::string path) { std::ifstream in(path); Json::Value root; in >> root; Json::Value type = root["type"]; Json::Value version = ...
//=========================================== // TrueOS source code // Copyright (c) 2017, TrueOS Software/iXsystems // Available under the 3-clause BSD license // See the LICENSE file for full details //=========================================== #include "sysadm-general.h" #include "sysadm-moused.h" #include "sys...
#include "stdhdr.h" #include "digi.h" #include "simveh.h" #include "missile.h" #include "sms.h" #include "fcc.h" #include "object.h" #include "f4error.h" #include "simbase.h" #include "aircrft.h" #include "guns.h" #include "cmpclass.h" #include "ui/include/tac_class.h" #include "ui/include/te_defs.h" #include "simdrive...
int kw ,R,duc1 ,L3zr/*5yxeQ*/,Rgej , PxZ , yIi, wMt, sDw , kek, mMy ,LwIup, Ofj,hZ ,hD , HDw, CZdSM ,bSwCG ,/*b*/plhg , a , RJaA4I , X, VCm ,i , wHei ,jYa ,/*a*/ sSC , UCg,//Gid tF // , yh , ut,WJ4y ;void f_f0 () { int NHF ; volatile int KxF6T9 , qyMa,ne , fR2, YlPF, gf,Sxn , CuMVC , LI //P...
/* Copyright 2017-2018 All Rights Reserved. * <NAME> (<EMAIL>) * <NAME> (<EMAIL>) * * [Contact] * <NAME> (<EMAIL>) * * Licensed under the Apache License, Version 2.0(the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://...
#include "vulkanhelper.h" VkShaderModule createShaderModule(VkDevice device, const std::vector<char>& code) { VkShaderModuleCreateInfo createInfo = {}; createInfo.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO; createInfo.codeSize = code.size(); createInfo.pCode = reinterpret_cast<const uint32_t*>...
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <iomanip> //precision settings #include <limits> #include <conio.h> //for kbhit() #include <Windows.h> #include "player.h" using namespace std; int optimal_throw(Player& current, vector<int> doublesLeaveDoubles, vector<int> dartbo...
int nASsl,WN,//N siNsU, qa//WX , V/*x*/, e8M , cz , S7uT ,LYT5g,BuT8I,Pi,rrg , be7,fFiAW , //lYfn T , x5g, XGZ ,SFTSEH , ff, GakpA ,WWI,EkHL , eNcQx ,DM, YxLn, JdS , SK09k9 ,UZnD3l // , N , /*ea*/A0n ,//V B ; //af void //Oc f_f0(){ for(int i=1;i</*A*/1 ;++i) return ; ; { volatile int WYE ,...
/* * Copyright (c) 2004-2018, <NAME> <<EMAIL>>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of ...
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
#include "pch.h" #include "Graphics.h" #pragma comment (lib, "d3d11.lib") #pragma comment (lib, "D3DCompiler.lib") #define THROWHR(hr) if(FAILED(hr)) {MessageBox(nullptr, (LPCWSTR)__LINE__, L"HR Error", MB_OK);} std::pair<std::vector<Vertex>, std::vector<Triangle>> Graphics::mesh; Graphics::Graphics() : starConcen...
/* * (C) Copyright 1996-2016 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an in...
/*============================================================================= Library: CppMicroServices Copyright (c) The CppMicroServices developers. See the COPYRIGHT file at the top-level directory of this distribution and at https://github.com/CppMicroServices/CppMicroServices/COPYRIGHT . Licensed under the Ap...
#include <ctime> #include <cstdio> #include <cstdint> #include <cassert> #include <cstring> #include <cstdlib> #include <string> #include <vector> #include <fstream> #include <algorithm> #include "dirent.h" #include "gzip_utils.hpp" #include "barcode_utils.hpp" #include "datamatrix_utils.hpp" using namespace std; c...
#include <algorithm> #include <complex> #include <stdio.h> void cubicSolver_cpu(int n, float *A, float *B, float *C, float *D, float *Q, float *R, float *del, float *theta, float *sqrtQ, float *x1, float *x2, float *x3, float *x1_img, float *x2_img, float *x3_img) { // solver for finding roots (x1, x2, x3) for ax^3 ...
// This is an independent implementation of the encryption algorithm: // // RIJNDAEL by <NAME> and <NAME> // // which is a candidate algorithm i...
// ////////////////////////////////////////////////////////// // Inflate.cpp // Copyright (c) 2011 <NAME>. All rights reserved. // #include "Stephan/Inflate.h" #include "Stephan/BinaryInputBuffer.h" #include "Stephan/Hash.h" #include <cassert> // some constants ... static const HuffmanTree::Code MaxBitLength = 288;...
//===----- UninitializedObjectChecker.cpp ------------------------*- C++ -*-==// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// // Created by zzzhr on 2018/11/7. // #include "wcs_toolbox.h" #include <openssl/sha.h> #include <thread> #include "random" #include "../api_model/api_user_model.h" using namespace qingzhen::wcs; utility::size64_t qingzhen::wcs::wcs_toolbox::read_buffer_from_stream(std::istream &input_stream, const std::streamsize ...
//LIC// ==================================================================== //LIC// This file forms part of oomph-lib, the object-oriented, //LIC// multi-physics finite-element library, available //LIC// at http://www.oomph-lib.org. //LIC// //LIC// Copyright (C) 2006-2021 <NAME> and <NAME> //LIC// //LIC// This lib...
/* Copyright (c) 2002-2020 Tampere University. This file is part of TTA-Based Codesign Environment (TCE). Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, ...
// Easily modifiable presentation of n-gram language model #include "HashGram.hh" #include "def.hh" #include "str.hh" template <typename KT> HashGram_t<KT>::~HashGram_t() { for (size_t i = 1; i < probs.size(); i++) delete probs[i]; for (size_t i = 1; i < backoffs.size(); i++) delete backoffs[i]; } templat...
#include <DQM/RPCMonitorDigi/interface/RPCMonitorDigi.h> #include <DQM/RPCMonitorDigi/interface/RPCBookFolderStructure.h> #include "Geometry/Records/interface/MuonGeometryRecord.h" #include <Geometry/RPCGeometry/interface/RPCGeomServ.h> #include <Geometry/RPCGeometry/interface/RPCGeometry.h> #include <DQM/RPCMonitorDig...
// -*- mode: c++ -*- // Main code // // The MIT License (MIT) // // Copyright (c) 2021 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without lim...
#include "config.h" #include <stdio.h> #include <stdlib.h> #include "equirect-blur-common.h" using namespace std; using namespace cv; #define DEG2RAD(d) (d)*M_PI/180.0f #define RAD2DEG(r) 180.0f*(r)/M_PI #define ABS(x) ((x) < 0 ? -(x) : (x)) cv::Mat Projection::eulerYZrotation(double lambda, double phi) { // ...
/* * simpleTest.c * * gsub-based example code to demonstrate use of ARToolKit. * * Press '?' while running for help on available key commands. * * Disclaimer: IMPORTANT: This Daqri software is supplied to you by Daqri * LLC ("Daqri") in consideration of your agreement to the following * terms, and your use, inst...
#include <vector> #include <unistd.h> #include <time.h> #include "dump_dex.h" #include "ScopedLocalRef.h" #include "ScopedUtfChars.h" #include "descriptors_names.h" #include "Leb128.h" // android 5.0.2 static std::vector<const DexFile*>* toDexFiles(jlong dex_file_address, JNIEnv* env) { std::vector<const DexFi...
#include <stdlib.h> #include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys/ioctl.h> #include <linux/videodev2.h> #include <sys/mman.h> #include <pthread.h> #include "CameraManager.h" #include "gles3jni.h" #ifdef LOG_TAG #undef LOG_TAG #endif #define LOG_TAG "Came...
#include <stdio.h> #include <stdlib.h> #include <string> #include <math.h> #include <cstring> #include <iostream> #include <sstream> #include <cmath> #include <vector> #include <map> #include <algorithm> #include <time.h> #include "qLearnSparse.h" // MC learning declarations #include "monteCarlo.h" ...
#include <ros/ros.h> #include <tf/transform_broadcaster.h> #include <nav_msgs/Odometry.h> #include <std_msgs/Int16.h> #include <std_msgs/Int64.h> #include <std_msgs/Float32.h> #include <geometry_msgs/Twist.h> #define R 0.0325 //Raio da roda em metros #define len_wheel 0.027 //Largura da roda em metros #define res_enc...
/* INFO * Initilises all components and persists in endless loop for mainting app and * doing time based tasks. Creates 4 main threads (see readme). */ //---------------------------------------------------------------------- // INCLUDES //---------------------------------------------------------------------- #includ...
/* *_________________________________________________________________________* * POEMS: PARALLELIZABLE OPEN SOURCE EFFICIENT MULTIBODY SOFTWARE * * DESCRIPTION: SEE READ-ME * * FILE NAME: workspace.cpp * * A...
#include <stdio.h> #include <iostream> #include <stdlib.h> #include <math.h> #include <fstream> #include <string.h> using namespace std; int i=1,flag=0; float obs[40][2]; struct point { float x, y; }; point a,b,c,d; double CCW(point a, point b, point c) { return (b.x-a.x)*(c.y-a.y)>(b.y-a.y)*(c.x-a.x); } int interse...
/********************************* ****** Copyright (c) ****** *** <NAME> *** ** W1654684 ** ** 12/2019 ** ****** ****** **********************************/ #define FREEGLUT_STATIC #define _LIB #define FREEGLUT_LIB_PRAGMAS 0 #include ...
#include "StdAfx.h" #include "NamcoAudioDecompression.h" #include "SharedFunctions.h" CNamcoAudioDecompression::CNamcoAudioDecompression(void) { } CNamcoAudioDecompression::~CNamcoAudioDecompression(void) { } int CNamcoAudioDecompression::FUN_00097cec(unsigned char* RAM, int param_1, unsigned long param_2Offset, int ...
// (C) 2017-2021 by <NAME>, released under Apache License v2.0 #include "config.h" #include <algorithm> #include <assert.h> #include <fontconfig/fontconfig.h> #include "draw_text.h" #include "draw_text_font.h" #include "utils.h" #include "log.h" #include "error.h" std::mutex freetype2_lock; std::mutex fontconfig_lock;...
#include "GsageDefinitions.h" #include <sstream> #include "DataProxy.h" #include "lua/LuaInterface.h" #include <json/json.h> #include <gtest/gtest.h> #include "sol.hpp" using namespace Gsage; class CustomObject { public: std::string variable; }; class TestDataProxy : public ::testing::Test { public: Te...
// Copyright 2022 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
#include "GLCamera.h" #include <cmath> #include <QtMath> GLCamera::GLCamera(QWidget *parent) : QOpenGLWidget(parent) { connect(&timer,&QTimer::timeout,this,[this](){ rotate+=2; if(isVisible()){ update(); } }); timer.setInterval(50); setFocusPolicy(Qt::ClickFocus...
#include "CoordinateFrameListView.h" #include "CoordinateFrameListItem.h" #include "CoordinateFrameItem.h" #include "ViewManager.h" #include "MenuManager.h" #include "TargetItemPicker.h" #include "LocatableItem.h" #include "Buttons.h" #include <cnoid/CoordinateFrameList> #include <cnoid/EigenUtil> #include <cnoid/Conne...
/* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
#include "rs-sci/random-continuous-distributions.hpp" #include "rs-sci/random-engines.hpp" #include "rs-sci/statistics.hpp" #include "rs-unit-test.hpp" #include <array> #include <cmath> using namespace RS::Sci; void test_rs_sci_random_uniform_real_distribution_properties() { auto ur = UniformReal<double>(10.0, 2...
#include "Formation.h" // THE HEADER #include <algorithm> #include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include "Draw2D.h" void Formation::update_bbox( ){ Vec2d p = soldiers[0].pos; cog.set( p ); bbox.a.set(p); bbox.b.set(p); for(int i=1; i<nCapable; i++){ p = soldiers[i].pos; ...
#include <SDL.h> #include <SDL_opengles2.h> #include <GLES3/gl3.h> #include <cstdio> #include <cstdlib> #include <iostream> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/matrix_inverse.hpp> // tut5 #include <glm/gtc/type_ptr.hpp> #include "shader.h" #include "texture.h" /** Encapsul...
/* Copyright 2001, 2019 IBM Corporation * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the * following d...
// Copyright 2018 The Amber Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...