text stringlengths 5.71k 33.7k |
|---|
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C) 2020, Ideas on Board Oy.
*
* A simple libcamera capture example
*/
#include "SimpleCam.h"
#include <chrono>
#include <iomanip>
#include <iostream>
#include <memory>
#include <libcamera/libcamera.h>
#include <opencv2/opencv.hpp>
#include "mapped_... |
/*
The filter DSP code has been derived from
Miller Puckette's code hosted at
https://github.com/ddiakopoulos/MoogLadders/blob/master/src/RKSimulationModel.h
which is licensed for use under the following terms (MIT license):
Copyright (c) 2015, <NAME>. All rights reserved.
Redistribution and use in source and binary... |
/*******************************************************************************
Copyright (c) 2015, <NAME>
To cite academic use of Voxelyze: <NAME> and <NAME> "Dynamic Simulation of Soft Multimaterial 3D-Printed Objects" Soft Robotics. March 2014, 1(1): 88-101.
Available at http://online.liebertpub.com/doi/pdfplus/10.... |
#include "gpk_geometry.h"
// Vertex coordinates for cube faces
static constexpr const ::gpk::STriangle3D<float> geometryCubePositions [12] =
{ {{1.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.0f}, {0.0f, 1.0f, 0.0f}} // Right - first
, {{1.0f, 0.0f, 0.0f}, {0.0f, 1.0f, 0.0f}, {1.0f, 1.0f, 0.0f}} // Right - second
... |
/*
pa_wavplay
A matlab function for playing an audio buffer on multi-channel hardware.
<NAME>, MARCS Auditory Lab, Sydney, Australia
<EMAIL>
with help with the recording code from:
<NAME>, Rensselaer Polytechnic Institute, USA, Department of Architectural Acoustics
<EMAIL>
Modified July 2014 by <NAME>, ... |
/*****************************************************************************/
/* adpcm.cpp Copyright (c) <NAME> 2003 */
/*---------------------------------------------------------------------------*/
/* This module contains implementation of adpcm decompression method used by */
/* Storm.... |
/*
* $Id: artillery.c,v 1.1.1.1 2005/01/11 21:18:01 kstevens Exp $
*
* Author: <NAME> <<EMAIL>>
*
* Copyright (c) 1996 <NAME>
* Copyright (c) 1998-2002 <NAME>
* Copyright (c) 2000-2002 <NAME>
* All rights reserved
*
* Created: Thu Sep 12 17:28:45 1996 fingon
* Last modified: Sat Jul 18 01:54:03 199... |
/*
SlimeVR Code is placed under the MIT license
Copyright (c) 2021 <NAME>, <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 limitati... |
#include "TrackingViewer.hpp"
#include "Terrain.h"
using namespace TRN;
static Terrain g_Terrain;
static void safe_glutBitmapString(void *font, const char *str) {
for (size_t x = 0; x < strlen(str); ++x)
glutBitmapCharacter(font, str[x]);
}
TrackingViewer* TrackingViewer::currentInstance_ = nullpt... |
#include "graspit/contact/softContact.h"
#include "graspit/contact/contact.h"
#include "graspit/debug.h"
#include "graspit/body.h"
#include "graspit/FitParabola.h"
#include "graspit/mytools.h"
#include <Inventor/nodes/SoCone.h>
#include <Inventor/nodes/SoCoordinate3.h>
#include <Inventor/nodes/SoCylinder.h>
#include <... |
#include "RecoMET/METPUSubtraction/plugins/PFMETProducerMVA.h"
using namespace reco;
const double dR2Min = 0.01*0.01;
const double dR2Max = 0.5*0.5;
const double dPtMatch = 0.1;
PFMETProducerMVA::PFMETProducerMVA(const edm::ParameterSet& cfg)
: mvaMEtAlgo_(cfg),
mvaMEtAlgo_isInitialized_(false)
{
srcCorrJet... |
// Copyright 2012 Viewfinder. All rights reserved.
// Author: <NAME>.
#include <unordered_map>
#include "LazyStaticPtr.h"
#include "Location.pb.h"
#include "LocationUtils.h"
#include "Logging.h"
#include "Placemark.pb.h"
#include "STLUtils.h"
#include "StringUtils.h"
namespace {
const double kMeanEarthRadius = 6371 ... |
// ObjectTalk Scripting Language
// Copyright (c) 1993-2022 <NAME>. All rights reserved.
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
//
// Include files
//
#include "ot/codepoint.h"
#include "ot/exception.h"
//
// OtCodePointSize
//
siz... |
#include "rsw_math.h"
#define MANGLE_TYPES
#include "gltools.h"
#define PORTABLEGL_IMPLEMENTATION
#include "GLObjects.h"
#include "stb_image.h"
#include <iostream>
#include <stdio.h>
#define SDL_MAIN_HANDLED
#include <SDL2/SDL.h>
#define WIDTH 640
#define HEIGHT 480
using namespace std;
using rsw::vec4;
using... |
// Copyright 2016 <NAME>
//
// 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 in wr... |
#include <QObject>
#include <QSet>
#include <QMap>
#include <QVector>
#include <QMultiMap>
#include <QtMath>
#include <QFile>
#include <QTextStream>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <QGeoCoordinate>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonValu... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
#include "IO/IOSocket.h"
#include <algorithm>
IOSocket::IOSocket()
{
//ctor
this->closed = true;
this->protocol = "";
this->error = 0;
}
IOSocket::~IOSocket()
{
//dtor
}
bool IOSocket::is_eof()
{
// Even if a socket has been closed, there may be data left to read
return (this->closed && r_buffer.si... |
// Tic Tac Toe or X's and O's.
// Keyboard input
// 'v' = view ortho/perspective
// 'l' = lighting on/of
#include <GL/glut.h> // glut (gl utility toolkit) basic windows functions, keyboard, mouse.
#include <stdio.h> // standard (I/O library)
#include <stdlib.h> // standard library (set of standard C fun... |
#include <cpp-terminal/base.hpp>
#include <cpp-terminal/input.hpp>
#include <filesystem>
#include <foxspace/file.hpp>
#include <foxspace/math.hpp>
#include <foxspace/time.hpp>
#include <fstream>
#include <iostream>
#include <snake/info.hpp>
#include <snake/snake.hpp>
snake::snake::snake() {
prepareGame();
}
void ... |
//===-- GlobalARCPairingAnalysis.cpp - Global ARC Retain Release Pairing --===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... |
///
/// Implementation of the mirroring engine
///
//
/// $Id: mirror.cc,v 1.13 2013/09/05 09:29:55 joe Exp $
//
#include "mirror.hh"
#include "main.hh"
#include "common/scopeguard.hh"
#include "common/string.hh"
#include "objparser/objparser.hh"
#include "httpd/request.hh"
#include "httpd/reply.hh"
#include <sys/... |
//=================================================================================================
// Copyright (c) 2012, <NAME>, TU Darmstadt
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//... |
/*
* This code was created by <NAME> '99
* (merged to Linux/SDL by <NAME> form <NAME>'s
* Linux/SDL Basecode and Kah-Wah Tang port to Linux/GLUT
* of this Tutorial)
*
*
* If you've found this code useful, please let me know.
*
* Visit Jeff at http://nehe.gamedev.net/
*
* or for port-specific comments, qu... |
#include "lua-str.hpp"
#include <cctype>
#include <cstdarg>
#include <cstdbool>
#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
// Taken from rx-cpp (https://github.com/stevedonovan/rx-cpp/) that took this code from the
// Lua source code.
static LuaFailFun s_fail_fun;
v... |
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-17 <NAME>
CppAD is distributed under the terms of the
Eclipse Public License Version 2.0.
This Source Code may also be made available under the following
Secondary Lice... |
#include <algorithm>
#include "combat/combat.h"
#include "random.h"
#include "logconsole.h"
#include "dataconsts.h"
#include "entity_system.h"
#include "srv_attack.h"
#include "srv_damage.h"
#include "srv_hp_reply.h"
#include "srv_mouse_cmd.h"
#include "srv_set_hp_and_mp.h"
#include "components/basic_info.h"
#includ... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during i... |
/*
* Copyright (C) 2019-2021 Open Source Robotics Foundation
*
* 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... |
// Copyright 2010 <NAME>
//
// Cache.cpp - Implementation for cache simulator.
// MTV includes.
#include <Tools/CacheSimulator/Cache.h>
#include <Tools/CacheSimulator/CacheConstructor.h>
using Daly::BlockRecord;
using Daly::Cache;
using Daly::CacheHitRecord;
using Daly::CacheLevel;
using Daly::ModtimeTable;
using Daly... |
#include "client.h"
#include "Viewport.h"
#include "Prop2D.h"
#include "FragmentShader.h"
#include "AnimCurve.h"
FragmentShader *Prop2D::default_fs=NULL;
bool Prop2D::propPoll(double dt) {
if( prop2DPoll(dt) == false ) return false;
if(remote_vel.isZero()==false) { // for cloud syncing
loc += remote_vel... |
//==============================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2016, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted pro... |
#include <cstdint>
#include "test.h"
#include "loki/node_search.h"
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <unordered_set>
#include "baldr/graphid.h"
#include "baldr/graphreader.h"
#include "baldr/location.h"
#include "midgard/pointll.h"
#include "midgard/vecto... |
/*
Copyright 2012-2020 <NAME>
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 in writing, software
dis... |
/* (c) <NAME>. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <engine/config.h>
#include <engine/shared/config.h>
#include "binds.h"
bool CBinds::CBindsSpecial::OnInput(IInput::CEvent Even... |
#include "pattern_thinker.h"
#include <vector>
#include "decision_planner.h"
#include "score_collector.h"
using namespace std;
PatternThinker::PatternThinker(const EvaluationParameterMap& evaluationParameterMap,
const DecisionBook& decisionBook,
const Pa... |
#include <RFormat.h>
#include <fmt/color.h>
#include <RColor.h>
#include <RPoint.h>
#include <RSize.h>
#include <RRect.h>
#include <RTimer.h>
#include <thread>
#include <RMath.h>
#include <RSigslot.h>
#include <RKeeper.h>
#include <RTextLoader.h>
#include <REntity.h>
#include <rsc/RImage.h>
#include <rsc/RFont.h>
#in... |
#include "simplefeaturecollection.h"
#include "util/exceptions.h"
#include "util/binarystream.h"
#include "util/sizeutil.h"
#include <sstream>
#include <iomanip>
#include <iostream>
#include <cmath>
#include <limits>
#include <json/json.h>
/**
* Timestamps
*/
bool SimpleFeatureCollection::hasTime() const {
retur... |
/**
* ElGA streamer
*
* This command is responsible for running a streamer, which will either
* proxy incoming network data or read from an edge list and forward
* appropriately into ElGA.
*
* Authors: <NAME>, <NAME>, <NAME>
*
* Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
* (NTES... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, <NAME>, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
#include "Player.h"
#include "imgui.h"
#include "Props.h"
#include "Input.h"
#include "Renderer.h"
#include "GUI.h"
#include "Game.h"
#include "Physics.h"
#include "Bullet.h"
#include "Missile.h"
#include "Checkpoint.h"
#include "Stock.h"
#include "Destructable.h"
#include "Collidable.h"
#include "Movable.h"
#incl... |
#include <dirent.h>
#include <libproc.h>
#include <mach/mach.h>
#include <mach/mach_host.h>
#include <pwd.h>
#include <sys/proc.h>
#include <sys/sysctl.h>
#include <sys/types.h>
#include <unistd.h>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include "macosx/macosx_i... |
#include "stdafx.h"
#include "Camera.h"
#include "GraphicsDevice.h"
D3DXVECTOR3 eyePoint;
D3DXVECTOR3 lookAt;
D3DXVECTOR3 up;
//以下为常量,代表初始camera的参数
D3DXVECTOR3 orginalEyePoint;
D3DXVECTOR3 orginalLookAt;
D3DXVECTOR3 orginalUp;
//camera只包含旋转变换的参数
D3DXVECTOR3 fixedEyePoint;
D3DXVECTOR3 fixedLookAt;
D3... |
#include "frcnn.h"
#include <fstream>
#include <iomanip>
#include <iostream>
#include <vector>
#include <cuda_runtime.h>
#include <glog/logging.h>
#include <opencv2/cudaarithm.hpp>
#include <opencv2/cudaimgproc.hpp>
#include <opencv2/cudawarping.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "NvInfer.h"
#inclu... |
#include "stdafx.h"
#include "../BaseLib/math/mathclass.h"
#include "./IKSolver.h"
#include "motion/Motion.h"
#include "motion/MotionUtil.h"
#include "motion/MotionLoader.h"
#define NO_DEBUG_GUI
//#define DEBUG_OUTPUT
static double _RO=TO_RADIAN(130);
// l1과 l2 사이의 각도. in [0, M_PI]
std::pair<m_real,bool> angle(m_real... |
/*
+---------------------------------------+
| BETH YW? WELSH GOVERNMENT DATA PARSER |
+---------------------------------------+
AUTHOR: <963906>
This file contains all the helper functions for initialising and running
Beth Yw? In languages such as Java, this would be a class, but we really
don't nee... |
/********************************************************************************
Copyright 2017 <NAME> (University of West bohemia - <EMAIL>)
<NAME> (University of West bohemia - <EMAIL>
File: i2c_sensors_driver.cpp (c++)
**********************************************... |
#include <GL/glew.h>
#include <GL/glxew.h>
#include "XWindow.h"
#include <GL/gl.h>
#include "../Utility/System.h"
#include <memory>
#include <vector>
#include <map>
#include <cassert>
#include <limits>
#include <cmath>
#include <X11/extensions/XInput2.h>
#include <X11/extensions/XI2.h>
#define ScrollUpButton 5
#defi... |
// Copyright 2013y BBN Technologies Corp.
// All Rights Reserved.
#include "Generic/common/leak_detection.h"
#include "Spanish/parse/es_STags.h"
// ======== Constituent Tags ==========
Symbol SpanishSTags::CONJ(L"CONJ"); // conjunction phrase
Symbol SpanishSTags::CONJ_SUBORD(L"CON... |
// license:BSD-3-Clause
// copyright-holders:<NAME>
/***************************************************************************
Gaelco CG-1V/GAE1 based games
Functions to emulate general aspects of the machine (RAM, ROM, interrupts,
I/O ports)
************************************************************... |
/*
Copyright (C) 1999-2007 id Software, Inc. and contributors.
For a list of contributors, see the accompanying CONTRIBUTORS file.
This file is part of GtkRadiant.
GtkRadiant is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
... |
#include "RetroPlugRoot.h"
#include <cmath>
#include "platform/FileDialog.h"
#include "util/File.h"
#include "util/fs.h"
#include "util/Serializer.h"
#include "Keys.h"
RetroPlugRoot::RetroPlugRoot(IRECT b, RetroPlug* plug, EHost host): IControl(b), _plug(plug), _host(host) {
}
RetroPlugRoot::~RetroPlugRoot() {
fo... |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkCodec.h"
#include "SkJpegCodec.h"
#include "SkJpegDecoderMgr.h"
#include "SkJpegUtility_codec.h"
#include "SkCodecPriv.h"
#include "SkColorPriv.h"
#include "SkStre... |
#include "Section_3_5.h"
cv::Mat creating_box_filter(int size)
{
cv::Mat kernal = cv::Mat::zeros(size, size, CV_32FC(1));
try
{
if (size % 2 == 0)
throw "This isn't an odd size kernal";
else
{
std::cout << "Kernal size is eligible" << std::endl;
float* ptr;
for (int row = 0; row < kernal.rows; row... |
/**
* Calculate the total luminosity and flux within the specified radius.
*
* Base on 'fit_dbeta_sbp.cpp' and supersede 'calc_lx.cpp'
*
* Author: <NAME>
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <list>
#include "vchisq.hpp"
#include "dbeta.hpp"
#include "beta_cfg.hpp"
#include <data_... |
#include "Fractal.h"
#pragma comment(lib,"winmm.lib")
#include "../imgui/imgui.h"
#include <memory>
#include <Windows.h>
#include <math.h>
#include <memory.h>
#include <mmsystem.h>
#include <stdio.h>
#include <stdlib.h>
#define TWO_PI (2.0f * 3.1415f)
#define MZK_RATE 44100
#define MZK_NUMCHANNELS 1
// 5 second au... |
#include <uWS/uWS.h>
#include <iostream>
#include "json.hpp"
#include "PID.h"
#include <math.h>
#include <limits>
using namespace std;
// for convenience
using json = nlohmann::json;
// For converting back and forth between radians and degrees.
constexpr double pi() { return M_PI; }
double deg2rad(double x) { return... |
/**
* @file elastic_gate.cpp
* @brief 2D elastic gate deformation due to dam break force.
* @details This is the one of the basic test cases, also the first case for
* understanding SPH method for fluid-structure-interaction (FSI) simulation.
* @author <NAME>, <NAME> and <NAME>
* @version 0.1
*/
/**
* @... |
// Still in build :)
// TODO: isPEFile, isPE64, isPE32
#include <windows.h>
#include <iostream>
class PEFile64 {
private:
HANDLE pefile;
PIMAGE_DOS_HEADER dos_header;
PIMAGE_FILE_HEADER file_header;
PIMAGE_OPTIONAL_HEADER64 optional_header;
PIMAGE_SECTION_HEADER section_hea... |
//
// main.cpp
// <NAME> CS450 Fall 2017 Assignment 1
// Simulate two OS process scheduling algorithms
//
#include <iostream>
#include <iomanip>
#include <ctime>
#include <algorithm>
#include <vector>
#include <queue>
#include <stdlib.h> // for srand and rand
#include <time.h> // also needed
#include <fstream> //ne... |
#include "qmlsettingsgenerator.h"
#include <QFileInfo>
QmlSettingsGenerator::QmlSettingsGenerator(const QString &hdrPath, const QString &srcPath) :
_hdrFile{hdrPath},
_srcFile{srcPath},
_hdr{&_hdrFile},
_src{&_srcFile}
{}
void QmlSettingsGenerator::process(const QString &inPath)
{
// read settings and adjust def... |
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <termios.h>
#include <sstream>
#include <fstream>
#include <iostream>
#include <string>
#include <gphoto2/gphoto2.h>
#include <gphoto2/gphoto2-camera... |
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <string>
#include <iostream>
#include "car.h"
#include "line.h"
using namespace sf;
void drawQuad(RenderWindow &w, Color c, int x1, int y1, int w1, int x2, int y2, int w2);
void project(Line &l, int camX, int camY, int camZ);
int width = 1024;
int heigh... |
#include "glare/render/shader.h"
#include "glare/render/renderer.h"
#include "glare/core/assert.h"
#include "glare/core/log.h"
#include "glare/core/string_utils.h"
#include "glare/data/xml_utils.h"
#include <d3dcompiler.h>
#pragma comment(lib, "d3dcompiler.lib")
////////////////////////////////////////////////////////... |
#define MOVABLE
// set (git)-repository-Version to unknown
// (if not defined in makefile during compile process)
#ifndef VERSION_STRING
#define VERSION_STRING "unknown"
#endif
// gcc standard C++ libraries (common stuff)
#include <iostream> // standard I/O-Operations (I/O to console)
#include <fstream> // same a... |
// STL
#include <iostream>
#include <math.h>
#include <stdlib.h>
// include opengl extension and application library
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
// include Engine
#include <Camera.hpp>
#include <Mesh.hpp>
#include <Material.hpp>
#include <RenderObject.hpp>
// include applicati... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2016 NIT<NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distrib... |
/* MikMod sound library
(c) 1998, 1999, 2000, 2001, 2002 <NAME> and others - see file
AUTHORS for complete list.
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... |
/******************************************************************************
** Filename: mftraining.c
** Purpose: Separates training pages into files for each character.
** Strips from files only the features and there parameters of
the feature type mf.
** Author: <NAME>
** Revisment: <NAME... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
#include <fstream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignor... |
//
// See the file LICENSE for redistribution information.
//
// Copyright (c) 2002,2009 Oracle. All rights reserved.
//
//
#include "DbXmlInternal.hpp"
#include "ConfigurationDatabase.hpp"
#include <sstream>
#include <dbxml/XmlException.hpp>
#include "Cursor.hpp"
#include "Manager.hpp"
#include "Buffer.hpp"
#inclu... |
#include "DXUT.h"
#include "col_local.h"
#include "World.hpp"
#include "GlobalSettings.hpp"
extern CollisionPacket collisionPackage; //Stores all the parameters and returnvalues
extern int collisionRecursionDepth; //Internal variable tracking the recursion depth
float** triangle_pool; //Stores the pointers to the... |
#include "mbed.h"
#include "math.h"
// déclaration des prototypes
void Init_Cs(void);
void Write_Register(int cap, int addr, int valeur);
int Read_Register(int cap, int addr);
void Read_x(int cap);
void Read_y(int cap);
void Read_z(int cap);
void lecture(void);
void Capteur_present(void);
// programme extrait de V04O... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
#include "des.h"
#include <cstring>
#include <iostream>
static bit subkey[16][48];
static const char ipTable[64] = {
58, 50, 42, 34, 26, 18, 10, 2, 60, 52, 44, 36, 28, 20, 12, 4,
62, 54, 46, 38, 30, 22, 14, 6, 64, 56, 48, 40, 32, 24, 16, 8,
57, 49, 41, 33, 25, 17, 9, 1, 59, 51, 43, 35, 27, 19, 11, 3,
... |
#include "../errors.h"
#include "../filesystem/utils/pagedef.h"
#include "RecordManager.h"
#include <cassert>
#include <cstring>
#include <errno.h>
#include <iostream>
RecordManager::RecordManager(BufPageManager *bm) : pm(bm) {}
void pageInitialize(HeaderPage &header, int record_size)
{
header.record_size = recor... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Yo... |
/* <NAME>
* HiMER Lab at U. of Illinois, Chicago
* ArUco Marker Joint Tracker
*
* main.cpp
* Gets inputs settings and runs data collection.
*
* ArUco marker detection code obtained from: https://github.com/opencv/opencv_contrib/blob/master/modules/aruco/samples/detect_markers.cpp
*/
#include "interface.h"
#i... |
////////////////////////////////////////////////////////////
// Nero Game Engine
// Copyright (c) 2016-2020 <NAME>
/////////////////////////////////////////////////////////////
///////////////////////////HEADERS///////////////////////////
//Nero
#include <Nero/core/cpp/utility/Math.h>
//Cpp
#include <random>
#include <... |
/*=========================================================================
*
* Copyright SINAPSE: Scalable Informatics for Neuroscience, Processing and Software Engineering
* The University of Iowa
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file excep... |
#include <gtest/gtest.h>
#include "utils.hpp"
#include "utils/BitArray.hpp"
//using namespace bord2;
inline constexpr unsigned char operator "" _uc(unsigned long long x) noexcept
{
return static_cast< unsigned char >(x);
}
template <size_t n, class T, size_t... Is>
constexpr BitArray<n,T> diagBitArray(std::inde... |
#include "Application.h"
#include "ModuleCamera.h"
#include "ModuleInput.h"
#include "ModuleWindow.h"
#include "ModuleRender.h"
#include "ModuleShaderProgram.h"
#include "ModuleSceneManager.h"
#include "Scene.h"
#include "Entity.h"
#include "ComponentBoundingBox.h"
#include "ComponentTransform.h"
#include "Component... |
#include <dirent.h>
#include <atomic>
#include <condition_variable>
#include <functional>
#include <iomanip>
#include <list>
#include <mutex>
#include <thread>
#include <fmt/ostream.h>
#include <pybind11/embed.h>
#include <url.hpp>
#include "utuputki/Config.h"
#include "utuputki/Downloader.h"
#include "utuputki/Lo... |
#include "realm.h"
#include "realm/id.h"
#include "realm/cmdline.h"
#include <cstdio>
#include <cstdlib>
#include <cassert>
#include <cstring>
#include <csignal>
#include <cmath>
#include <time.h>
#include "osdep.h"
using namespace Realm;
Logger log_app("app");
// Task IDs, some IDs are reserved so start at first... |
/************************************************************************************************************************************
Copyright 2017 Autodesk, 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 ... |
//--------------------------------------------------------------------------------------------------
// Copyright (c) YugaByte, 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
//
// ht... |
#include "app/include/NewXZRotExperimentHCI.h"
const double THRESH = 0.00134;
NewXZRotExperimentHCI::NewXZRotExperimentHCI(MinVR::AbstractCameraRef camera, CFrameMgrRef cFrameMgr, TextureMgrRef texMan, FeedbackRef feedback) : AbstractHCI(cFrameMgr, feedback) {
offAxisCamera = std::dynamic_pointer_cast<MinVR::... |
#include <cstdio>
#include <cmath>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <cmath>
#include <cstring>
#include <string>
#include <map>
#include <set>
#include <limits>
#include <unistd.h>
#include "omp.h"
#include <getopt.h>
using namespace std;
#define A 0
#define B 1
#de... |
//
// Snapshot.cpp
// interface/src/ui
//
// Created by <NAME> on 1/26/14.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "Snapshot.h"
#include <QtCore/QDateTime>
#... |
/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/GrShaderCaps.h"
#include "src/gpu/effects/GrBezierEffect.h"
#include "src/gpu/glsl/GrGLSLFragmentShaderBuilder.h"
#include "src/gpu/glsl/GrGLSLGeometryProces... |
// STD headers
#include <assert.h>
#include <limits>
#include <list>
#include <string>
#include <unordered_map>
#include <vector>
// Custom headers
#include "mt_cache_base.hpp"
#include "cache_common.hpp"
#include "utils.hpp"
using namespace caching;
/**
* Note: The following implementation is adapted from the
* s... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#include <windows.h>
#include <io.h>
#include <sys/stat.h>
#include <vgui/isystem.h>
#include "min_footprint_files.h"
#include "filesystem_too... |
#include "Data.h"
vector<vector<U64>> CONNECTIONS = vector<vector<U64>>(64, vector<U64>(64, 0x0));
vector<vector<U64>> magicRookMoveDatabase = vector<vector<U64>>(64, vector<U64>());
vector<vector<U64>> magicBishopMoveDatabase = vector<vector<U64>>(64, vector<U64>());
void genChessData::genMoveData()
{
genConnecti... |
/**
***************************************************************************
* TODO: Need to update LANL/Triad Copyright notice...
*
* Copyright (c) 2017, Los Alamos National Security, LLC.
* All rights reserved.
*
* Copyright 2010. Los Alamos National Security, LLC. This software was
* produced under U.... |
///Thid program tries finding multiple roots for the operators stated below:
///Runs newton Rhapsody for different initial values in range.(in steps of 0.1)
///## This is now parsing as an INFIX expression
///## The different classes are more organized(Easily Extendable to include more functions)
///## The derivative ... |
// Copyright 2017 The Chromium OS 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 "puffin/src/include/puffin/utils.h"
#include <inttypes.h>
#include <algorithm>
#include <set>
#include <string>
#include <vector>
#include ... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
#include <spdlog/sinks/basic_file_sink.h>
#include <imgui/imgui.h>
// ours with XInput removed
#include "re2-imgui/imgui_impl_win32.h"
#include "re2-imgui/imgui_impl_dx11.h"
#include "utility/Module.hpp"
#include "utility/DroidFont.cpp"
#include "sdk/REGlobals.hpp"
#include "Mods.hpp"
#include "LicenseStrings.hpp"... |
/* Copyright 2016 Stanford University
*
* 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 agree... |
#include "Halide.h"
#include "halide_benchmark.h"
#include <iostream>
#include <limits>
#define WIDTH 1024
#define HEIGHT 1024
using namespace Halide;
using namespace Halide::Tools;
class PipelineClass {
public:
Func output;
Func intermBuf3;
Func intermBuf5;
Func intermBuf9;
Func intermBuf17;
Buffer<uint... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.