Top > C++ > スクリプト

スクリプト Edit

いつものように妄想という名の遊び。

./言語仕様
./バイトコード
./オレ言語を作ってみたい人へ

./メモ

Everything is expanded.Everything is shortened.
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 
 
 
 
 
 
 
 
-
|
|
-
|
!
|
|
|
|
!
 
 
 
//-----------------------------------------------------------
module Project.Util.Vector3;
 
//-----------------------------------------------------------
using Std.Math;
 
//-----------------------------------------------------------
pod Vector3
{
public:
    float length()const
    {
        return Math.Sqrt( x*x + y*y + z*z );
    }
 
    float x;
    float y;
    float z;
};
 
//-----------------------------------------------------------
// EOF

Reload   New Lower page making Edit Freeze Diff Upload Copy Rename   Front page List of pages Search Recent changes Backup Referer   Help   RSS of recent changes
Last-modified: (4885d)