Coordinates [n] applet artifact count V1.0 (attached source)

N coordinate calculation, is based on the linear edge length, azimuth angle and a coordinate of the end point, calculations of the coordinates of the other endpoint of the straight line. Paper implements the coordinates in C # and VB language positive operator, coordinates the preparation of Traverse artifact.

Calculation example:

Examples of the coordinates 1, coordinates XA disposed side length of line AB and a DAB terminal A, YA is known, the other end of the straight line B is:

XB = XA + ΔXAB (5.1)

YA + YB = ΔYAB (5.2)

Wherein, ΔXAB, ΔYAB called incremental coordinates, it is a straight line end points A, B of the difference between the coordinate values. The trigonometric function calculated coordinate increments may be written as:

ΔXAB = DAB · cosαAB (5.3)

ΔYAB = DAB · sinαAB (5.4)

Wherein ΔX, ΔY of the symbol depends on the quadrant where the azimuth angle α.

A, C # program to achieve

1, interface design

2 Source Codes

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 坐标正算
{
    

Guess you like

Origin blog.csdn.net/lucky51222/article/details/105152519