text
stringlengths
5.71k
33.7k
//===- ExtractFunction.cpp - Extract a function from Program --------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "util/builders.h" #include "util/geom.h" #include "glm/gtx/rotate_vector.hpp" #include "glm/gtx/norm.hpp" namespace mapbox { namespace util { template <> struct nth<0, Tangram::Point> { inline static float get(const Tangram::Point &t) { return t.x; }; }; template <> struct nth<1, Tangram::Point> { i...
/******** * Author: <NAME>(<EMAIL>) * This is the main program of this project. * Shader programs, VAOs, VBOs and VEOs are created and * data is binded to buffer. **********/ #include <glad/glad.h> #include <GLFW/glfw3.h> #include <Eigen/Core> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #includ...
/**************************************************************************** * * ProjectCopier.cpp * ($\tools\vs_project_copy\src) * * by <EMAIL> (2014/04/24) * (2014/8/19) * ***/ #include "stdafx.h" #include "FormatString.h" #include <sys/types.h> #include <sys/stat.h> #pragma comment(lib, "rpcrt4...
// Copyright (c) 2012 The Chromium 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 "ui/views/controls/label.h" #include <algorithm> #include <cmath> #include <limits> #include <vector> #include "base/i18n/rtl.h" #include "...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2020, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
#include "epot_bicgstabsolver.hpp" #include "epot_umfpacksolver.hpp" #include "particledatabase.hpp" #include "geometry.hpp" #include "func_solid.hpp" #include "epot_efield.hpp" #include "meshvectorfield.hpp" #include "ibsimu.hpp" #include "error.hpp" #include "particlediagplotter.hpp" #include "geomplotter.hpp" #inclu...
/* * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
/* * (c) Copyright 2021 Xilinx, 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 ap...
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
#include "mpi/warmup.hpp" #include "sorter/distributed/lcp_aware_number_string_splitting.hpp" #include "mpi/readInput.hpp" #include "mpi/synchron.hpp" #include "util/measuringTool.hpp" #include "util/random_string_generator.hpp" #include <map> #include <tlx/cmdline_parser.hpp> struct GeneratedStringsArgs { size_...
// Copyright 2017 The Ray 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 to i...
// Copyright (c) 2011 libmv authors. // // 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 limitation the // rights to use, copy, modify, merge, publish...
#include "subcommand.hpp" #include "../vg.hpp" #include "../utility.hpp" #include "xg.hpp" #include "../algorithms/gfa_to_handle.hpp" #include "../io/save_handle_graph.hpp" #include "../gfa.hpp" #include "../gbwt_helper.hpp" #include <vg/io/stream.hpp> #include <vg/io/vpkg.hpp> #include <vg/io/alignment_emitter.hpp> #...
#include "FZFile.h" #include "utils.h" #include <algorithm> #include <ctype.h> #include <locale.h> #include <stdint.h> #include <string.h> #include <unordered_map> #include <zlib.h> // Decoding an .fz file. You still need the key of course. // https://en.wikipedia.org/wiki/RC6 here you can read it all up. // Looking...
// Copyright (c) 2012 The Chromium 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 "net/websockets/websocket_handshake_handler.h" #include <limits> #include "base/base64.h" #include "base/md5.h" #include "base/sha1.h" #inc...
//- // ========================================================================== // Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk // license agreement provided at the time of installation or download, // or which otherwise accompan...
#include "GL_Loader.h" #include "GL_RenderVariables.h" //#include <ft2build.h> //#include FT_FREETYPE_H void refreshWindowSize(GLFWwindow *window, int width, int height) { /* La Callback prevere azioni sull'immagine, per poi riproiettarla tramite glViewport * glViewport è la funzione per la trasformazione da N...
/* * SEGS - Super Entity Game Server * http://www.segs.io/ * Copyright (c) 2006 - 2018 SEGS Team (see AUTHORS.md) * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details. */ /*! * @addtogroup NetStructures Projects/CoX/Common/NetStructures * @{ */ #include "StateInt...
#include <stdio.h> #include <stdlib.h> #include <time.h> #pragma warning(push, 0) #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" #pragma warning(pop) #include "palettize.h" static const int MAX_BITMAP_DIM = 100; static const int PALETTE_BITMAP_WIDTH = 512; static const int PALETTE_BITMAP_HEIGHT = 64; stat...
/** @file A brief file description @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you und...
#include "quadrature.hpp" #include <iostream> #include "matlab_utilities.hpp" #include <algorithm> #include <array> #include <cassert> #include <cmath> #include <functional> // Evaluate Legendre polynomials on an input domain, trimmed to [-1,1] // Virtually a direct translation of Ed's dlegendre2.m code // // Legendre...
/* * IRIS Localization and Mapping (LaMa) for ROS * * Copyright (c) 2019-today, <NAME>, University of Aveiro - Portugal * All rights reserved. * License: New BSD * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: ...
/* ------------------------------------------------------------------------- * Implements gpusim::GPUSimServer * Reads a binary .fsim file and creates a FingerprintDB on GPU. Uses a local * socket to communicate with querying processes. Fingerprint agnostic. * * * Copyright Schrodinger LLC, All Rights Reserved....
//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-2022 <NAME> and <NAME> //LIC// //LIC// This lib...
#include <common.h> #include <game.h> #include <profile.h> #include "boomeranghax.h" const char* CloudPlattformFileList[] = { "cloudM", 0 }; class daEnCloudPlattform_c : public dEn_c { public: int onCreate(); int onExecute(); int onDelete(); int onDraw(); mHeapAllocator_c allocator; nw4r::g3d::ResFile resFil...
// Copyright (c) 2011-present, 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. // // The following ...
#include <Rcpp.h> #include <algorithm> using namespace Rcpp; inline int randWrapper(const int n) { return std::floor(float(unif_rand()*n)); } struct Circle { double x; double y; double r; int i; Circle* next; Circle* prev; }; class FrontChain { double center_x; double center_y; double total_weight...
#include "SubspaceGameProtocol.h" #include "SubspaceChatCommands.h" #include "SubspaceClientCommands.h" #include "SubspaceGamePackets.h" #include "PacketLog.h" void SubspaceGameProtocol::onPacket(SubspacePacket& p) { if(p.getByte(0) == 0) { //packetout << "SubspaceGameProtocol::handleReceivedPackets ...
/* * PackageLicenseDeclared: Apache-2.0 * Copyright (c) 2016 ARM Limited * * 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 re...
/* BLAKE2 reference source code package - reference C implementations Written in 2012 by <NAME> <<EMAIL>> To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without...
/* * Portions Copyright (c) 2010-Present Couchbase * Portions Copyright (c) 2008 Danga Interactive * * Use of this software is governed by the Apache License, Version 2.0 and * BSD 3 Clause included in the files licenses/APL2.txt and * licenses/BSD-3-Clause-Danga-Interactive.txt */ #include "network_interface_ma...
// Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availability visit ht...
#include "DQMServices/Examples/interface/DQMExample_Step1.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" // Geometry #include "DataFormats/Math/interface/LorentzVector.h" #include "DataFormats/Math/interface/deltaPhi.h" #include "DataFormats/Math/interface/deltaR.h" #include "TLorentzVector.h" #include ...
//////////////////////////////////////////////////////////////////////////// // Module : ai_crow.cpp // Created : 13.05.2002 // Modified : 13.05.2002 // Author : <NAME> // Description : AI Behaviour for monster "Crow" //////////////////////////////////////////////////////////////////////////// #include "pch_scri...
/** * Copyright (c) Glow Contributors. See CONTRIBUTORS file. * * 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 b...
#include "sp_segmenter/WKmeans.h" WKmeans::WKmeans() { eps = 1e-6; thread_num = omp_get_max_threads(); } WKmeans::~WKmeans(){} void WKmeans::AddData(cv::Mat data, cv::Mat weights) { if( data.rows != weights.rows ) { std::cerr << "data.rows != weights.rows" << std::endl; ...
#include "simplify.hpp" #include "unification.hpp" #include "destructured_member_visitor.hpp" #include "union_member_visitor.hpp" #include "debug.hpp" #include <cassert> #define MT_SHOW2(msg, a, b) \ std::cout << (msg) << std::endl; \ unifier.type_printer().show2((a), (b)); \ std::cout << std::endl namespace mt...
#include <Rcpp.h> #include <cstdio> #include <fstream> #include <iostream> using namespace Rcpp; #include "mdns.h" #include "b64.h" #include <stdio.h> #include <errno.h> #ifdef _WIN32 # include <iphlpapi.h> # define sleep(x) Sleep(x * 1000) #else # include <netdb.h> # include <ifaddrs.h> #endif static uint32_t...
/******************************************************************************* * Created Date: September 25th, 2019 * Created By: <NAME> * Purpose: Manage the operation of a Text Editor *******************************************************************************/ #include "TextEditor.h" ...
/* Copyright (C) 2003-2014 by <NAME> <<EMAIL>> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercia...
#include "2dland.h" #define flap_2dland #define cal_land_num void load_img_land(std::string path, std::string sfx, iden *ide, int &id_idx, std::vector< std::vector<cv::Mat_<uchar> > > &imgs) { #ifdef win64 int hFile = 0; struct _finddata_t fileinfo; std::string p; if ((hFile = _findfirst(p.assign(path).ap...
#include "frc\Joystick.h" #include "rev/CANSparkMax.h" #include "frc/VictorSP.h" #include "frc/DoubleSolenoid.h" #include "frc/Encoder.h" #include "Robot.h" #include "Drive.h" #include "Log.h" #include <frc/ADXRS450_Gyro.h> using namespace std; double leftdriveold; double rightdriveold; Drive::Drive() : Subsyste...
/* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/> * This program 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 of the License, or * (at your option) any later version....
#include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include <Arduino.h> #include <math.h> #include "USART.h" // Print #include "I2C.h" // Sensors #include "LPF.h" // Low Pass Filter //#define DEBUG /* ==== RX Pins ==== * PIN2 (D2) = PCINT18 (PCMSK2) = RX 0 - Throttle * PIN4 (D4) = PCINT2...
// File : learning.cpp // Author: <NAME> // Date: 21 August 2013 // // Main entry point for Hidden Alignment Conditional Random Field software. // Exposes command-line interface to train, test, and use HACRF models to score // input sequences. // // TODO: Contains globals that should be moved to be moved to a Learnin...
// // wxPanel derived class where all the grids, numbers, and mines are drawn on. // TO DO: Use RefreshRect instead of Refresh for hopefully better performance (if it helps). // /*************************************/ /* Includes */ /*************************************/ #include <wx/dcbuffe...
/* This file is part of Kismet Kismet 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 of the License, or (at your option) any later version. Kismet is distributed in the ...
#include "app.h" // -------------------------------------------------------------------- void App::initResultBufferOnDevice() { params.frame = 0; result_bitmap.allocateDevicePtr(); accum_bitmap.allocateDevicePtr(); normal_bitmap.allocateDevicePtr(); albedo_bitmap.allocateDevicePtr(); params.r...
#include "common.hpp" #include <cstdio> #include <cstdlib> #include <string> #include <random> #include <map> #include <cassert> #include <sys/stat.h> // eigen #include <Eigen/Core> #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) using namespace Eigen; using namespace std; constexpr int BUF_SIZE ...
/** \class SiPixelRawDumper_H * To find hot pixels from raw data * Works in v352 */ #include "FWCore/Framework/interface/one/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "DataFormats/Common/interface/Handle.h" #include "FWCore/Messag...
#include "tfhe/tfhe.h" #include <iostream> #include <iostream> #include <iomanip> #include <cstdlib> #include <cmath> #include <ctime> #include <sys/time.h> #include "tfhe/tfhe.h" #include "tfhe/polynomials.h" #include "tfhe/lwesamples.h" #include "tfhe/lwekey.h" #include "tfhe/lweparams.h" #include "tfhe/tlwe.h" #incl...
// DJStats.cpp // //////////////////////////////////////////////////////////////////////// #include <afx.h> #include <afxwin.h> #include <stdio.h> #include <iostream.h> #include <math.h> #include <limits> #include "DJGStatistics.h" #include "DJGBiber.h" #include "DJTDocument.h" #include "chunkify.h" ...
#include "build.h" #include "xenonPlatform.h" #include "xenonKernel.h" #include "xenonFileSystem.h" #include "xenonGraphics.h" #include "xenonCPUDevice.h" #include "xenonInput.h" #include "xenonMemory.h" #include "xenonUserManager.h" #include "xenonAudio.h" #include "xenonBindings.h" #include "xenonTimeBase.h" #includ...
#include "mainwindow.h" #include "ui_mainwindow.h" //#include <QStatusBar> #include <QUrl> #include <QTextEdit> #include <QSerialPort> #include <QDebug> #include <QModbusTcpClient> #include <QModbusRtuSerialMaster> #include <QStandardItemModel> #include "myStyle.h" #include "myGlobal.h" extern StyleValues MyStyle;...
#include "StdAfx.h" #include <ISystem.h> #include "FlowBaseNode.h" class CMoveEntityTo : public CFlowBaseNode<eNCT_Instanced> { enum EInPorts { IN_DEST = 0, IN_DYN_DEST, IN_VALUETYPE, IN_VALUE, IN_EASEIN, IN_EASEOUT, IN_COORDSYS, IN_START, IN_STOP }; enum EValueType { VT_SPEED = 0, VT_TIM...
#include "Terrain.h" #include <vector> #include <cmath> // Needed only temporarily so that dimensions can be calculated without going through the heightmap generator #include <QDesktopServices> // Also needed temporarily, so that the heightmap image can be outputted to a directory where ImageViewer can easily find i...
// Copyright (C) (See commit logs on github.com/robhz786/strf) // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <strf/to_string.hpp> #include <strf/to_cfile.hpp> #include <cstdint> #include <vector> ...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2012 The MITRE Corporation * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * y...
/* * This file is part of the libemb project. * * Copyright (C) 2011 <NAME> <<EMAIL>> * * This program 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 3 of the License, or * (at your opt...
/* * Measures the performance difference between the new Xoodoo implementation and the original Xoodoo code */ #include <iostream> #include <stdio.h> #include <chrono> using namespace std; uint32_t r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, v0, v1; uint32_t a00, a01, a02, a03, a10, a11, a12, a13, a20, a21, a...
///! \file /// A canonical MC implementation for the CP(N-1) model /// #include "./canonical_cpn_mc.h" #include "io.h" #include <omp.h> // Global constants known at compile time const std::size_t dim = 2; int main(int argc, char *argv[]) { // ---------------------------------------------------------------------- ...
/****************************** Author: <NAME> Date: 2011 ******************************/ #include "cts.hpp" #include "fastmath.hpp" #include <vector> #include <cassert> #include <stack> #include <iostream> #include <cmath> // boost includes #include <boost/utility.hpp> // do we use d...
#include "caliper/common/Variant.h" #include "gtest/gtest.h" #include <cstring> using namespace cali; // Test some type conversions TEST(Variant_Test, FromString) { const char* teststr = "My wonderful test string"; uint64_t uval = 0xef10; int64_t i64val = -9876543210; const struct testcase_t { ...
#include <vector> #include <deque> #include <string> #include <algorithm> #include <iostream> #include <fstream> using namespace std; #include <unistd.h> #include <sys/wait.h> #include <boost/program_options.hpp> using namespace boost; namespace po = boost::program_options; #include "opencv2/core/core.hpp" #include ...
// license:BSD-3-Clause // copyright-holders:<NAME> // remaining gfx glitches // layer priority register not fully understood #include "emu.h" #include "includes/drgnmst.h" rgb_t drgnmst_base_state::drgnmst_IIIIRRRRGGGGBBBB(uint32_t raw) { int const bright = 0x5 + ((raw >> 12) & 0xf); // TODO : verify brightnes...
// tag::C++11check[] #define STRING2(x) #x #define STRING(x) STRING2(x) #if __cplusplus < 201103L #pragma message("WARNING: the compiler may not be C++11 compliant. __cplusplus version is : " STRING(__cplusplus)) #endif // end::C++11check[] // tag::includes[] #include <iostream> #include <vector> #include <algorithm...
/* * mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * * 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 * * Unles...
/* * Open source copyright declaration based on BSD open source template: * http://www.opensource.org/licenses/bsd-license.php * * This file is part of the OP2 distribution. * * Copyright (c) 2011, <NAME> and others. Please see the AUTHORS file in * the main source directory for a full list of copyright holders....
#include <iostream> //using namespace std; #include "tests_cryptoTools/UnitTests.h" #include "libOTe_Tests/UnitTests.h" #include <cryptoTools/Common/Defines.h> using namespace osuCrypto; #include <cryptoTools/Network/Channel.h> #include <cryptoTools/Network/Session.h> #include <cryptoTools/Network/IOSer...
// // exercisetablerow -- Exercise all aspects of the Fl_Table_Row widget // #include <stdio.h> #include <string.h> #ifdef _WIN32 #include <stdlib.h> // atoi #endif /* _WIN32 */ #include <FL/Fl.H> #include <FL/Fl_Window.H> #include <FL/Fl_Input.H> #include <FL/Fl_Check_Button.H> #include <FL/Fl_Choice.H> #include...
/* Copyright 2016 <NAME>, Imperial College London 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 disclaim...
// Copyright 2020 Samsung Electronics Co., Ltd. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "key_event_channel.h" #include <map> #include "flutter/shell/platform/tizen/logger.h" static constexpr char kChannelName[] = "flutter/...
/* =========================================================================== Copyright (c) 2010-2015 Darkstar Dev Teams This program 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 3 of...
/** * @file * @author [tGautot](https://github.com/tGautot) * @brief Simple C++ implementation of the [MD5 Hashing * Algorithm](https://en.wikipedia.org/wiki/MD5) * @details * The [MD5 Algorithm](https://en.wikipedia.org/wiki/MD5) is a * hashing algorithm which was designed in 1991 by [Ronal * Rivest](https://e...
/* Part of Newcastle University's Game Engineering source code. Use as you see fit! Comments and queries to: richard-gordon.davison AT ncl.ac.uk https://research.ncl.ac.uk/game/ */ #include "Matrix4.h" #include "Matrix3.h" #include "Maths.h" #include "Vector3.h" #include "Vector4.h" #include "Quaternion.h" using nam...
/* * Copyright 2012 <NAME> * * Authors: <NAME> * Computer Vision Group RWTH Aachen. */ #include "EKalman.h" #include "AncillaryMethods.h" string kalmanResTemp = "icp_%04d_%05d.txt"; void initrand() { srand((unsigned)(time(0))); } double randdouble() { return rand()/(double(RAND_MAX)+1); } EKalman::EKa...
//===- MemoryDependenceAnalysis.cpp - Mem Deps Implementation --*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* * Copyright 2019 Xilinx 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 * * Unless required by applicable law or agreed to ...
// Copyright (c) 2007-2009 Google Inc. // Copyright (c) 2006-2007 Jaiku Ltd. // Copyright (c) 2002-2006 <NAME> and <NAME> // // This software is licensed at your choice under either 1 or 2 below. // // 1. MIT License // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software ...
#include "Globals.h" #include "ModuleSceneLoader.h" #include "Application.h" #include "ModuleInput.h" #include "ModuleFileSystem.h" #include "ModuleRenderer3D.h" #include "Libraries/Assimp/include/cimport.h" #include "Libraries/Assimp/include/scene.h" #include "Libraries/Assimp/include/postprocess.h" #include "ModuleSc...
#include <Arduino.h> /* Small device to retrieve the passing time of the STIB-MIVB public transport at given stops. These stops are hardcoded in the code as favourites. The app consists in 2 screen. - The selection of the line from the favourite list. - Displaying the time at station The user ...
#include "landing_quadrotor.h" using namespace std; using namespace Eigen; PX4Landing::PX4Landing(const ros::NodeHandle& nh, const ros::NodeHandle& nh_private): nh_(nh), nh_private_(nh_private) { Initialize(); cmdloop_timer_ = nh_.createTimer(ros::Duration(0.1), &PX4Landing::CmdLoopCallback, this); //周期为0.1s ...
#include <set> #include <random> #include "gtest/gtest.h" #include "ast_opt/ast/AbstractNode.h" #include "ast_opt/parser/Parser.h" #include "ast_opt/runtime/RuntimeVisitor.h" #include "ast_opt/runtime/SealCiphertextFactory.h" #include "ast_opt/ast/Assignment.h" #include "ast_opt/ast/Variable.h" #include "ast_opt/ast/In...
/* * Copyright (c) 2017, <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 o...
#include <omp.h> #include <string> #include <cstring> #include <iostream> #include <vector> #include <queue> #include "LevelSet.h" using namespace std; LevelSet::LevelSet(string filename, int band, lux::Vector corner, float d, int n){ // obj = objl::Loader(); // obj.LoadFile(filename); //objl::Mesh mesh = obj.Loaded...
/*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2020 JeaSung (<EMAIL>). All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
#include "util.h" int max4( int x, int y, int z, int k ) { int max = x; if(y>max) max = y; if(z>max) max = z; if(k>max) max = k; return max; } int max3( int x, int y, int z ) { int max = x; if(y>max) max = y; if(z>max) max = z; return max; } int min3( in...
#include "kids/sweep/fitter.h" #include "kids/sweep/model.h" #include <tula/algorithm/ei_ceresfitter.h> #include <tula/algorithm/ei_numdiff.h> #include <tula/algorithm/ei_stats.h> #include <tula/container.h> #include <tula/eigen.h> #include <tula/formatter/enum.h> #include <tula/grppi.h> #include <tula/switch_invoke.h>...
#pragma once #include "../../sdk.hpp" #define DECLARE_POINTER_HANDLE(name) struct name##__ { int unused; }; typedef struct name##__ *name #define MAXSTUDIOSKINS 32 // These are given to FindMaterial to reference the texture groups that Show up on the #define TEXTURE_GROUP_LIGHTMAP "Lightmaps" #define T...
// This is an independent project of an individual developer. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com #include "autowall.h" c_autowall::returninfo_t c_autowall::calculate_return_info(Vector start, Vector end, IClientEntity* from_entity, ICli...
/*************************************************** Arduino TFT 2D graphics library targeted at ESP8266 and ESP32 based boards using the TFT_eSPI library (https://github.com/Bodmer/TFT_eSPI). created by JLA 11/2018 (https://github.com/androdlang/TFTShape). ***************************************************...
#include <zerof/mem_so_patcher.h> #include <zerof/maps_helper.h> #include <cstdlib> #include <sys/mman.h> #include <sys/sysconf.h> #include <android/log.h> #include <dlfcn.h> #include <fcntl.h> #include <chrono> #define TAG "MemSoPatcher" using namespace zerof; bool mem_so_patcher::linker_hook_attempted = false; bo...
// CLASSIFICATION: UNCLASSIFIED /***************************************************************************/ /* RSC IDENTIFIER: Datum Library * * ABSTRACT * * This component provides datum shifts for a large collection of local * datums, WGS72, and WGS84. A particular datum can be accessed by using its *...
#include "vixen.h" #include "vxutil.h" #include "util/sceneopt.h" #include "scene/vxoctree.h" /*! * @fn void PSSceneOptimize::UniqueAppearances(PSModel* root) * @param root root of hierarchy to optimize appearances for * * Scans the hierarchy and computes an Appearances table * containing the unique Appearance ob...
#define _CRT_SECURE_NO_WARNINGS #include <fstream> #include <sstream> #include <iostream> #include <vector> #include <opencv2/dnn.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/highgui.hpp> #define OPENCV string("OpenCV") #define OPENVINO string("OpenVino") #define CPU string("CPU") #define GPU ...
#include <cstdint> #include <cassert> #include <cstdio> #include <iostream> #include <fstream> #include <optional> #include <tuple> #include <vector> #include "rv_types.h" #include "mem.h" // Minimal RISC-V interpreter, supporting RV32IM only // Use unsigned arithmetic everywhere, with explicit sign extension as req...
/* NOTE: Some of the Oculus OVR code is based on an SDL example that is released into the public domain. See below for direct links to the code: https://codelab.wordpress.com/2014/09/07/oculusvr-sdk-and-simple-oculus-rift-dk2-opengl-test-program/ http://nuclear.mutantstargoat.com/hg/oculus2/file/tip */ ...
// // SV2DFaceMaskSTNode.cpp // SVEngine // Copyright 2017-2020 // <NAME>,<NAME>,<NAME>,<NAME>,<NAME>,<NAME> // #include "SV2DFaceMaskSTNode.h" #include "../mtl/SVTexture.h" #include "../mtl/SVMtlFace2D.h" #include "../mtl/SVTexMgr.h" #include "../core/SVMathHelper.h" #include "../basesys/SVConfig.h" #include "../bas...
#include <cstdio> #include <cmath> #include "camera.h" #include "constants.h" #include "tools.h" #include "intersect.h" Camera::Camera() : m_viewTrfm(new Trfm3D), m_projTrfm(new Trfm3D), m_lastE(Vector3::ZERO), m_lastAt(0.0f, 0.0f, -1.0f), m_lastUp(0.0f, 0.0f, -1.0f), m_E(Vector3::ZERO), m_At(0.0f, 0.0f, -1.0f)...