mgVector3 クラスは、3次元ベクトル値を表すヘルパークラスです。
一部APIの引数や戻り値に使用されます。
x, y, z
mgVector3(float=0) コンストラクタ
mgVector3(x,y,z) コンストラクタswap(mgVector3)
float = operator [] i
bool = operator == mgVector3
mgVector3 = operator + mgVector3
mgVector3 = operator - mgVector3
mgVector3 = operator * float
mgVector3 = operator * mgVector3
mgVector3 = operator / float
mgVector3 = operator / mgVector3
bool = operator < mgVector3float = length()
float = squareLength()
float = distance(mgVector3)
float = squareDistance(mgVector3)
float = dotProduct(mgVector3)
float = absDotProduct(mgVector3)
float = normalise()
mgVector3 = crossProduct(mgVector3)
mgVector3 = midPoint(mgVector3)
makeFloor(mgVector3)
makeCeil(mgVector3)
mgVector3 = perpendicular()
mgVector3 = randomDeviant(mgRadian)
Radian = angleBetween(mgVector3)
mgQuaternion = getRotationTo(mgVector3)
bool = isZeroLength()
mgVector3 = normalisedCopy()
mgVector3 = reflect(mgVector3)
bool = positionEquals(mgVector3)
bool = positionSloses(mgVector3)
bool = directionEquals(mgVector3, mgRadian)