Ejemplo n.º 1
0
 static GMapControl()
 {
     if (!IsDesignerHosted)
     {
         GMaps.Initialize(GMapImageProxy.Instance);
     }
 }
Ejemplo n.º 2
0
Archivo: Line.cs Proyecto: fxbit/FxMath
        public Line(GMaps.IVertex<float> Start, GMaps.IVertex<float> End)
        {
            // set the local radius
            m_Start = Start;
            m_End = End;

            m_pStart = new Vector2(m_Start.X, m_Start.Y);
            m_pEnd = new Vector2(m_End.X, m_End.Y);
        }
Ejemplo n.º 3
0
        public Triangle(GMaps.IVertex<float> vec1, GMaps.IVertex<float> vec2, GMaps.IVertex<float> vec3)
        {
            // set the local positions
            m_P1 = vec1 as Vector.FxVector2f? ?? new Vector.FxVector2f(vec1.X, vec1.Y);
            m_P2 = vec2 as Vector.FxVector2f? ?? new Vector.FxVector2f(vec2.X, vec2.Y);
            m_P3 = vec3 as Vector.FxVector2f? ?? new Vector.FxVector2f(vec3.X, vec3.Y);

            mp_P1 = new Vector2(m_P1.x, m_P1.y);
            mp_P2 = new Vector2(m_P2.x, m_P2.y);
            mp_P3 = new Vector2(m_P3.x, m_P3.y);

            // set that the geometry is dirty
            isGeometryDirty = true;
        }