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

Example #1
0
        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