VectorMath.DVector2.Angle C# (CSharp) Method

Angle() public method

public Angle ( ) : double
return double
        public double Angle()
        {
            return Math.Atan2(Y, X);
        }

Usage Example

Exemplo n.º 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::Angle