コード例 #1
0
        public void SetNodeBound(int nodeindex, ref AABB bound)
        {
            GImpactQuantization.QuantizeClamp(out m_node_array.GetRawArray()[nodeindex].m_quantizedAabbMin,
                                              ref bound.m_min,
                                              ref m_global_bound.m_min,
                                              ref m_global_bound.m_max,
                                              ref m_bvhQuantization);

            GImpactQuantization.QuantizeClamp(out m_node_array.GetRawArray()[nodeindex].m_quantizedAabbMax,
                                              ref bound.m_max,
                                              ref m_global_bound.m_min,
                                              ref m_global_bound.m_max,
                                              ref m_bvhQuantization);
        }
コード例 #2
0
 public void QuantizePoint(out UShortVector3 quantizedpoint, ref IndexedVector3 point)
 {
     GImpactQuantization.QuantizeClamp(out quantizedpoint, ref point, ref m_global_bound.m_min, ref m_global_bound.m_max, ref m_bvhQuantization);
 }