摘要: c#Windows窗体中,每个控件都有自己的属性,可以在属性中修改简单的样式,如前景色、背景图片等,但是如果想要窗体更美观,就需要通过控件的paint函数进行绘制。 每个按钮都在一个矩形内部,矩形内部左上角坐标为(http://www.amjmh.com/v/BIBRGZ_558768/),以最常见 阅读全文
posted @ 2019-08-05 18:39 李艳艳665 阅读(3771) 评论(0) 推荐(0) 编辑
摘要: 第一,图中圆环所在的指定区域与坐标轴所在的区域是两个相互独立的空间,通过使用glViewport函数限定。 glViewport(0,0,500,500);//指定圆环绘制空间,从(0,0)位置开始,长宽分别为500 glViewport(0,300,200,200);//指定坐标轴的绘制空间,从( 阅读全文
posted @ 2019-08-05 18:39 李艳艳665 阅读(5962) 评论(0) 推荐(0) 编辑
摘要: 一、三个变量限定词的概念1、Attribute用途:传输那些和顶点数据有关的数据(例如,顶点位置、法向量、顶点颜色<每个顶点都对应一个颜色>)2、uniform用途:传输那些对于所有顶点都相同(或者与顶点无关数据)=》例如:旋转、平移、缩放的矩阵,每个顶点位置都要用到同样的矩阵来获取变换的位置,对于 阅读全文
posted @ 2019-08-05 18:39 李艳艳665 阅读(1028) 评论(0) 推荐(0) 编辑
摘要: using SDHK_Tool.Dynamic; private SD_Motor_Angle Motor_Angle; //旋转电机 public bool Motor = true; //电机激活 public float Speed = 100; //电机速度 public float Ang 阅读全文
posted @ 2019-08-05 18:39 李艳艳665 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 使用例子: using SDHK_Tool.Dynamic; private SD_Motor_Angle Motor_Angle; //旋转电机 public float Speed = 1; //旋转速度 public float Angle = 0; //当前角度 public float T 阅读全文
posted @ 2019-08-05 18:39 李艳艳665 阅读(122) 评论(0) 推荐(0) 编辑
摘要: //先计算车辆在大地坐标下的初始时刻的roll,pitch,yaw(车辆到大地) if(count==0){ tf::Quaternion orientation; tf::quaternionMsgToTF(GnssInitMsg->pose.orientation, orientation); 阅读全文
posted @ 2019-08-05 18:39 李艳艳665 阅读(2372) 评论(0) 推荐(0) 编辑
摘要: // Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' Shader "Unlit/lightFull"{ Properties { _MainTex ("Texture", 2D) = " 阅读全文
posted @ 2019-08-05 18:38 李艳艳665 阅读(585) 评论(0) 推荐(0) 编辑
摘要: #ifndef MD_COMFORT_H#define MD_COMFORT_H #include <QWidget>#include <QPaintEvent>#include <QPainter> namespace Ui {class MD_Comfort;} class MD_Comfort 阅读全文
posted @ 2019-08-05 18:34 李艳艳665 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 程序设计思路也简单,首先使用叉积计算出平面单位法向量PN,然后根据射线start和dir求解模长n,就得到相交Point了,代码如下: using System.Collections;using System.Collections.Generic;using UnityEngine; publi 阅读全文
posted @ 2019-08-05 18:34 李艳艳665 阅读(194) 评论(0) 推荐(0) 编辑
摘要: #ifndef METERDISPLAY_H#define METERDISPLAY_H #include <QWidget>#include <QMouseEvent>#include <QKeyEvent>#include "md_comfort.h"namespace Ui {(http:// 阅读全文
posted @ 2019-08-05 18:34 李艳艳665 阅读(83) 评论(0) 推荐(0) 编辑