magnitude向量_magnitude物理_magnitudes

电脑杂谈  发布时间:2017-05-21 05:03:20  来源:网络整理

magnitudes_magnitude向量_magnitude物理

magnitude向量magnitude向量

var magnitude : float

Description描述

Returns the length of this vector (Read Only).

magnitude物理_magnitudes_magnitude向量

返回向量的长度(只读)。

The length of the vector is square root of (x*x+y*y).

向量的长度是(x*x+y*y)的平方根。

magnitude物理_magnitude向量_magnitudes

If you only need to compare magnitudes of some vectors, you can compare squared magnitudes of them using sqrMagnitude (computing squared magnitudes is faster).

如果你只需要比较一些向量的长度,你可以比较它们长度的平方,使用sqrMagnitude(计算平方更快)。

参见:sqrMagnitude.


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-48320-1.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      热点图片
      拼命载入中...