Пример #1
0
        public void Pitch(double angle)
        {
            Vector3D right = Right;

            _forward = _forward.Rotate(right, angle);
            _down    = _down.Rotate(right, angle);
        }
Пример #2
0
        public Slice3D(Vector3D normal, Point3D topLeft, double width, double height)
        {
            Vector3D right = normal.Rotate(Vector3D.AxisY, -90.0);
            Vector3D down  = normal.Rotate(Vector3D.AxisX, -90.0);

            _topLeft     = topLeft;
            _topRight    = _topLeft + (right * width);
            _bottomLeft  = _topLeft + (down * height);
            _bottomRight = _bottomLeft + (right * width);

            _normal = normal;
            _width  = width;
            _height = height;
            _plane  = new Plane3D(normal, _topLeft);
        }
Пример #3
0
        public Slice3D(Vector3D normal, Point3D topLeft, double width, double height)
        {
            Vector3D right = normal.Rotate(Vector3D.AxisY, -90.0);
            Vector3D down = normal.Rotate(Vector3D.AxisX, -90.0);

            _topLeft = topLeft;
            _topRight = _topLeft + (right * width);
            _bottomLeft = _topLeft + (down * height);
            _bottomRight = _bottomLeft + (right * width);

            _normal = normal;
            _width = width;
            _height = height;
            _plane = new Plane3D(normal, _topLeft);
        }