cocos2d-x 3.0 |
)
- 文件列表 - 文件成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
Vector2.h 文件参考
#include
#include
#include
#include "math/CCMathBase.h"
#include "Vector2.inl"
## 类 | |
class | Vec2 |
定义一个2维浮点向量 更多… | |
## 类型定义 | |
typedef Vec2 | Point2 |
## 函数 | |
NS_CC_MATH_BEGIN float | clampf (float value, float min_inclusive, float max_inclusive) |
Copyright 2013 BlackBerry Inc. 更多… | |
const Vec2 | operator* (float x, const Vec2 &v) |
计算向量与给定浮点数的乘积。 更多… | |
类型定义说明
typedef Vec2 Point2 |
函数说明
| inline |
Copyright 2013 BlackBerry 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 writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Original file from GamePlay3D: http://gameplay3d.org
This file was modified to fit the cocos2d-x project 将value的大小限制在min_inclusive与max_inclusive之间
| inline |
计算向量与给定浮点数的乘积。
- 参数
x缩放因子 v被缩放的向量
- 返回
- 缩放后的值