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

📄 resultsource.java

📁 基于java的3d开发库。对坐java3d的朋友有很大的帮助。
💻 JAVA
字号:
//===========================================================================import vsdk.toolkit.common.VSDK;public class ResultSource{    public static final int SPHERICAL_HARMONIC = 0;    public static final int CUBE13VIEW = 0;    public int source;    public int sketchId;    public double distance;    public ResultSource(int source, double distance, int sketchId)    {        this.source = source;        this.distance = distance;        this.sketchId = sketchId;    }    public ResultSource(ResultSource other)    {        this.source = other.source;        this.distance = other.distance;        this.sketchId = other.sketchId;    }    public int getSource()    {        return source;    }    public int getSketchId()    {        return sketchId;    }    public double getDistance()    {        return distance;    }    public String toString()    {        String msg;        msg = "(";        if ( source == SPHERICAL_HARMONIC ) {            msg += "SH";        }        else if ( source >= CUBE13VIEW+1 && source <= CUBE13VIEW+13 ) {            msg += "CV" + (source - CUBE13VIEW);        }        else {            msg += "?";        }        msg += ":" + VSDK.formatDouble(distance);        msg += ")";        return msg;    }}//===========================================================================//= EOF                                                                     =//===========================================================================

⌨️ 快捷键说明

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