Exemplo n.º 1
0
        public bool isPointBelongs(GlPointR2 P)
        {
            if (P == null || P.isNullPoint() || !new GlLineR2(startPoint, new GlVectorR2(base.deltaX, base.deltaY)).isPointBelongs(P))
            {
                return(false);
            }

            return(Math.Abs(new GlVectorR2(P.X - startPoint.X, P.Y - startPoint.Y).Length + new GlVectorR2(EndPoint.X - P.X, EndPoint.Y - P.Y).Length - new GlVectorR2(EndPoint.X - startPoint.X, EndPoint.Y - startPoint.Y).Length) < FAULT);
        }
Exemplo n.º 2
0
        ///////////////////////////////////////////////
        ////////////////////FIELDS/////////////////////
        ///////////////////////////////////////////////


        /*********************************************/


        ///////////////////////////////////////////////
        /////////////////CONSTRUCTORS//////////////////
        ///////////////////////////////////////////////

        public GlLineSegment(GlPointR2 startPoint, GlPointR2 endPoint)
            : base(new GlVectorR2(endPoint.X - startPoint.X, endPoint.Y - startPoint.Y))
        {
            if (startPoint == null || endPoint == null)
            {
                startPoint = new GlPointR2(float.NaN, float.NaN);
                endPoint   = new GlPointR2(float.NaN, float.NaN);
                return;
            }

            this.startPoint = startPoint;
            this.endPoint   = endPoint;
        }
Exemplo n.º 3
0
 public virtual GlPointR2 getPointTranslatedToRotatedSystem(float SIN, float COS, GlPointR2 systemCenter)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 4
0
 public GlRectangle(GlPointR2 PLT, float width, float height, GlVectorR2 directVector)
 {
 }
Exemplo n.º 5
0
 public virtual GlCircle getCurvatureCircle(GlPointR2 belongsPoint)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 6
0
 public override bool isPointInside(GlPointR2 P)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 7
0
 public GlHyperbola(float RealHalfAxis, float AddHalfAxis, GlVectorR2 directVector, GlPointR2 HypCenter)
 {
 }
Exemplo n.º 8
0
 public GlLineSegment(GlPointR2 startPoint, GlPointR2 endPoint)
 {
 }
Exemplo n.º 9
0
 public virtual IEnumerable <GlPointR2> getIntersection(GlPointR2 P)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 10
0
 public virtual GlPointR2 getProjection(GlPointR2 p)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 11
0
 public GlLineR2(GlPointR2 belongsPoint, GlVectorR2 directVector)
 {
 }
Exemplo n.º 12
0
 public GlPointR2(GlPointR2 copyPoint)
 {
 }
Exemplo n.º 13
0
 public static bool Equals(GlPointR2 P1, GlPointR2 P2)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 14
0
 public virtual bool Equals(GlPointR2 P)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 15
0
 public GlParabola(float aCoeff, GlPointR2 vertex, GlVectorR2 directVector)
 {
 }
Exemplo n.º 16
0
 public virtual GlLineR2 getPerpendicular(GlPointR2 P)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 17
0
 public GlCircle(float Rad, GlPointR2 center)
 {
 }
Exemplo n.º 18
0
 public virtual GlLineR2 getParallel(GlPointR2 P)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 19
0
 public abstract bool isPointBelongs(GlPointR2 P);
Exemplo n.º 20
0
 public virtual float getDistance(GlPointR2 P)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 21
0
 public virtual bool isPointBelongs(GlPointR2 P)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 22
0
 public GlTriangle(GlPointR2 P1, GlPointR2 P2, GlPointR2 P3)
 {
 }
Exemplo n.º 23
0
 public override GlLineR2 getTangentFromBelongs(GlPointR2 belongsPoint)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 24
0
 public GlSquare(GlPointR2 PLT, int side, GlVectorR2 directVector)
 {
 }
Exemplo n.º 25
0
 public abstract GlLineR2 getTangentFromBelongs(GlPointR2 belongsPoint);
Exemplo n.º 26
0
 public virtual void addVertex(GlPointR2 P)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 27
0
 public abstract bool isPointInside(GlPointR2 P);
Exemplo n.º 28
0
 public GlPolygon(GlPointR2 center, IEnumerable <GlPointR2> initPoints)
 {
 }
Exemplo n.º 29
0
 public override void addVertex(GlPointR2 P)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 30
0
 /// <returns>The point vector points to from the given point</returns>
 public GlPointR2 fromPointToPoint(GlPointR2 P)
 {
     return((P == null || P.isNullPoint()) ? new GlPointR2(null) : new GlPointR2(P.X + this.dX, P.Y + this.dY));
 }