Vector3
- Angle
- ClampMagnitude
- Cross
- Distance
- Dot
- forward
- Lerp
- magnitude
- Max
- Min
- MoveTowards
- normalized
- Normalize
- one
- operator !=
- operator *
- operator +
- operator -
- operator /
- operator ==
- OrthoNormalize
- Project
- Reflect
- right
- RotateTowards
- Scale
- Slerp
- SmoothDamp
- sqrMagnitude
- this [int index]
- ToString
- up
- Vector3
- x
- y
- zero
- z
Vector3.operator + 运算符 加法
static operator + (a : Vector3, b : Vector3) : Vector3
Description描述
Adds two vectors.
两个向量相加。
Adds corresponding components together.
每个相对应的组件相加在一起。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
print(new Vector3(1, 2, 3) + new Vector3(4, 5, 6));
}
}
最后修改:2010年12月20日 Monday 23:06