LlVecMag/ja

From Second Life Wiki
< LlVecMag
Revision as of 15:49, 25 February 2016 by SakuraNoel Fayray (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

要約

関数: llVecMag( vector vec );

ベクトルの大きさ (vec から <0.0, 0.0, 0.0> までの、無向の負でない距離) を float で返します。 llSqrt(vec.x*vec.x + vec.y*vec.y + vec.z*vec.z) で求めることができます。

• vector vec

サンプル

default {
    state_entry()
    {
        vector input = <1.0,2.0,3.0>;
        llSay(0,"The magnitude of "+(string)input+" is "+(string)llVecMag(input) + ".");
    }
}

関連項目

関数

•  llVecNorm 法線ベクトル
•  llVecDist 2 つのベクトル間の距離

特記事項

Search JIRA for related Issues

Signature

function void llVecMag( vector vec );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。