text stringlengths 5.71k 33.7k |
|---|
#include "arrmor_detection.h"
// 计算两个点之间的距离
double calc_distance(Point2f p1, Point2f p2)
{
return pow(pow(p1.x-p2.x,2)+pow(p1.y-p2.y,2),0.5);
}
armor::armor(){}
armor::armor(const LED_Stick& L1, const LED_Stick& L2){
Led_stick[0]= L1;
Led_stick[1]= L2;
error_angle = fabs(L1.rect.angle - L2.rect.angle... |
#include "ProjHelperFun.h"
#include "Constants.h"
#include "TridagPar.h"
void updateParams(const unsigned g, const REAL alpha, const REAL beta, const REAL nu, PrivGlobs& globs)
{
// parallelizable directly since all reads and writes are independent.
// Degree of parallelism: myX.size*myY.size
// Access to... |
// Copyright (c) 2011 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 "gdef.h"
#include <limits>
#include <vector>
#include "gpos.h"
#include "gsub.h"
#include "layout.h"
#include "maxp.h"
// GDEF - The Glyph... |
#include <cassert>
#include "HyperionConfig.h"
#include "Poco/RegularExpression.h"
#include "Poco/StringTokenizer.h"
#include "Poco/Timestamp.h"
#include "Poco/Delegate.h"
#include "Poco/NumberParser.h"
#include "hyperion/Hyperion.h"
#include "hyperion/ImageProcessorFactory.h"
#include "leddevice/LedDevice.h"
#incl... |
// -*- mode: c++; indent-tabs-mode: nil; -*-
//
// Copyright (c) 2009-2012 Illumina, 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 in the Software without
// restriction, including without limit... |
// Copyright 2017 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
//
// Unless required by applicable law or agreed to in... |
#include <stddef.h>
#include <cstring>
#include <assert.h>
#include "sd_spi.hpp"
#include "FreeRTOS.h"
#include "task.h"
using namespace drv;
using namespace hal;
#define WAIT_RESPONSE_CNT 10
#define TRANSMITTER_BIT 6
#define END_BIT 0
#define DATA_TOKEN_CMD17_18_24 0xFE
#define DATA_TOKEN_CMD25 0xFC
#... |
/*
ESP8266 Simple Service Discovery
Copyright (c) 2015 <NAME>
Original (Arduino) version by <NAME>, July 23, 2014.
Can be found at: https://github.com/nomadnt/uSSDP
License (MIT license):
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (... |
/**
* @file inter_code_generator.h
* @brief 中间代码生成器类具体实现
*/
#include "../include/inter_code_generator.h"
#define POS(cur) cur->line_number, cur->pos
map<string, VARIABLE_INFO_ENUM> Info::VAR_INFO_MAP = {
{"double", VARIABLE_INFO_ENUM::DOUBLE},
{"float", VARIABLE_INFO_ENUM::DOUBLE},
{"int"... |
/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001-2003 <NAME>. *
* All rights reserved. Email: <EMAIL> Web: www.q12.org *
* ... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
#include "minnesota_potential.hpp"
minnesotaPotential::minnesotaPotential(int numberOfParticles, double density) {
L = pow((numberOfParticles)/density, 1./3.);
piOverL = M_PI/L;
VRfactor = V_0R/(L*L*L)*pow(M_PI/kappa_R,1.5);
VTfactor = -V_0T/(L*L*L)*pow(M_PI/kappa_T,1.5);
VSfactor = -V_0S/(L*L*L)*pow(M_PI/... |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 21