VectorMath.DVector2.Length C# (CSharp) Method

Length() public method

public Length ( ) : double
return double
        public double Length()
        {
            return Math.Sqrt(X * X + Y * Y);
        }

Usage Example

コード例 #1
0
ファイル: EngineBase.cs プロジェクト: rdancer/SpaceSim
        protected EngineBase(int id, ISpaceCraft parent, DVector2 offset, EngineFlame flame)
        {
            _parent = parent;

            _offsetLength = offset.Length();
            _offsetRotation = offset.Angle() - Math.PI / 2.0;

            _engineFlame = flame;
        }
All Usage Examples Of VectorMath.DVector2::Length