GUI_POINT的坐标
2016-06-10 21:23
656 查看
static const GUI_POINT _aPointArrow[] = {
{ 0, 0 },
{ -40, -30 },
{ -10, -20 },
{ -10, -70 },
{ 10, -70 },
{ 10, -20 },
{ 40, -30 },
};
GUI_DrawPolygon(&_aPointArrow[0],7, 100, 100);
坐标(100,100)就是_aPointArrow的相对原点,{0,0}这个点的绝对坐标就是{100,100}。
相对坐标轴向上和向左半轴都是负的。
{ 0, 0 },
{ -40, -30 },
{ -10, -20 },
{ -10, -70 },
{ 10, -70 },
{ 10, -20 },
{ 40, -30 },
};
GUI_DrawPolygon(&_aPointArrow[0],7, 100, 100);
坐标(100,100)就是_aPointArrow的相对原点,{0,0}这个点的绝对坐标就是{100,100}。
相对坐标轴向上和向左半轴都是负的。
相关文章推荐
- leetcode---Unique Paths---动规
- POJ 1947 Rebuilding Roads(树形DP)
- 响应式布局基本实现Media Query(媒介查询)
- 【Arduino官方教程第一辑】示例程序 6-1 读取ADXL3xx加速度计
- UITableViewCell中cell分割线不显示
- 【Leetcode】Longest Consecutive Sequence
- UITableView性能优化 以及动态计算cell高度 新方法
- [LeetCode][9]Palindrome Number解析与StringBuilder.reverse()源码实现 -Java实现
- Building Roads_poj2749_2-sat+二分
- duilib第四天 2016年6月10日
- Ten Important Differences between Bluetooth BR/EDR and Bluetooth Smart
- iOS安全编码指南 Secure Coding Guide -- 02 Types of Security Vulnerabilities 上
- Codeforces645E Intellectual Inquiry
- java下简单GUI布局与监听
- 转发 源框架GPUImag
- 基于QtQuick2.0应用程序运行于XP系统的诸多问题
- iOS9 获取手机的唯一标识(一)——CFUUID、NSUUID、IDFA、IDFV、UDID、OpenUDID 的区别
- bzoj3339 rmq problem (range mex query)
- maven_创建quickstart模板时异常
- iOS小技巧20-iOS UILabel 文字设置垂直居中、垂直靠上、垂直靠下,设置edgeInsets