⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ivp_clustering_lrange_hash.cxx

📁 hl2 source code. Do not use it illegal.
💻 CXX
字号:
// Copyright (C) Ipion Software GmbH 1999-2000. All rights reserved.

#include <ivp_physics.hxx>

#include <ivu_vhash.hxx>
#include <ivp_clustering_longrange.hxx>
#include <ivp_clustering_lrange_hash.hxx>


IVP_ov_tree_hash::~IVP_ov_tree_hash() {;}

int IVP_ov_tree_hash::node_to_index(IVP_OV_Node *node)
{
    return hash_index( (char *)&node->data, sizeof(node->data));
}


IVP_BOOL IVP_ov_tree_hash::compare(void *elem0, void *elem1) const
{
    IVP_OV_Node *node0 = (IVP_OV_Node *)elem0;
    IVP_OV_Node *node1 = (IVP_OV_Node *)elem1;

    if ( node0->data.rasterlevel != node1->data.rasterlevel) return(IVP_FALSE);
    
    if ( node0->data.x != node1->data.x) return(IVP_FALSE);
    if ( node0->data.y != node1->data.y) return(IVP_FALSE);
    if ( node0->data.z != node1->data.z) return(IVP_FALSE);

    return(IVP_TRUE);
}





⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -