Пример #1
0
        /// <summary>sets this to vectorE3GA value.
        /// </summary>
        public void Set(vectorE3GA src)
        {
            AllocateGroups(GroupBitmap.GROUP_1);
            float[] ptr;

            ptr    = m_c[1];
            ptr[0] = ptr[4] = 0.0f;
            ptr[1] = src.m_c[0];
            ptr[2] = src.m_c[1];
            ptr[3] = src.m_c[2];
        }
Пример #2
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public vectorE3GA(vectorE3GA A)
 {
     Set(A);
 }
Пример #3
0
 public void Set(vectorE3GA a)
 {
     m_c[0] = a.m_c[0];
     m_c[1] = a.m_c[1];
     m_c[2] = a.m_c[2];
 }
Пример #4
0
 /// <summary>
 /// Converts a vectorE3GA to a mv.
 /// </summary>
 public mv(vectorE3GA A)
 {
     Set(A);
 }
Пример #5
0
        /// <summary>sets this to vectorE3GA value.
        /// </summary>
        public void Set(vectorE3GA src)
        {
            AllocateGroups(GroupBitmap.GROUP_1);
            float[] ptr;

            ptr = m_c[1];
            ptr[0] = ptr[4] = 0.0f;
            ptr[1] = src.m_c[0];
            ptr[2] = src.m_c[1];
            ptr[3] = src.m_c[2];
        }
Пример #6
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public vectorE3GA(vectorE3GA A)
 {
     Set(A);
 }
Пример #7
0
 public void Set(vectorE3GA a)
 {
     m_c[0] = a.m_c[0];
     m_c[1] = a.m_c[1];
     m_c[2] = a.m_c[2];
 }
Пример #8
0
 /// <summary>
 /// Converts a vectorE3GA to a mv.
 /// </summary>
 public mv(vectorE3GA A)
 {
     Set(A);
 }
Пример #9
0
        /// <summary>Returns conformal point.
        /// </summary>
        public static normalizedPoint cgaPoint(flatPoint a)
        {
            vectorE3GA _v_ = new vectorE3GA();
            _v_.m_c[0] = a.m_c[0]/((a.m_c[3]));
            _v_.m_c[1] = a.m_c[1]/((a.m_c[3]));
            _v_.m_c[2] = a.m_c[2]/((a.m_c[3]));

            return new normalizedPoint(normalizedPoint.coord_e1_e2_e3_ni,
            _v_.m_c[0], // e1
            _v_.m_c[1], // e2
            _v_.m_c[2], // e3
            (0.5f*_v_.m_c[0]*_v_.m_c[0]+0.5f*_v_.m_c[1]*_v_.m_c[1]+0.5f*_v_.m_c[2]*_v_.m_c[2]) // ni
            );
        }