示例#1
0
 public wPlane(wPoint OriginPoint, wVector XVector, wVector YVector, wVector ZVector)
 {
     Origin = OriginPoint;
     XAxis  = XVector;
     YAxis  = YVector;
     ZAxis  = ZVector;
 }
示例#2
0
        public wVector(wPoint StartPoint, wPoint EndPoint)
        {
            X = EndPoint.X - StartPoint.X;
            Y = EndPoint.Y - StartPoint.Y;
            Z = EndPoint.Z - StartPoint.Z;

            SetAmplitude();
        }
示例#3
0
        public wVector(wPoint WindPoint)
        {
            X = WindPoint.X;
            Y = WindPoint.Y;
            Z = WindPoint.Z;

            SetAmplitude();
        }
示例#4
0
        public void SubtractVector(wPoint point)
        {
            X -= point.X;
            Y -= point.Y;
            Z -= point.Z;

            SetAmplitude();
        }
示例#5
0
        public void AddVector(wPoint point)
        {
            X += point.X;
            Y += point.Y;
            Z += point.Z;

            SetAmplitude();
        }
示例#6
0
 public void SetOrigin(wPoint OriginPoint)
 {
     Origin = OriginPoint;
 }
示例#7
0
 public wPlane(wPoint OriginPoint, wPoint XLocation, wPoint YLocation)
 {
     Origin = OriginPoint;
     XAxis  = new wVector(OriginPoint, XLocation);
     YAxis  = new wVector(OriginPoint, YLocation);
 }