作者:小小寒沙 | 来源:互联网 | 2024-09-28 14:19
本文整理了Java中com.jme3.math.Vector4f.hashCode()
方法的一些代码示例,展示了Vector4f.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Vector4f.hashCode()
方法的具体详情如下:
包路径:com.jme3.math.Vector4f
类名称:Vector4f
方法名:hashCode
Vector4f.hashCode介绍
[英]hashCode
returns a unique code for this vector object based on its values. If two vectors are logically equivalent, they will return the same hash code value.
[中]hashCode
根据向量对象的值返回该向量对象的唯一代码。如果两个向量在逻辑上等价,它们将返回相同的哈希码值。
代码示例
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
@Override
public int hashCode() {
int hash = 5;
hash = 73 * hash + (this.pos != null ? this.pos.hashCode() : 0);
hash = 73 * hash + (this.norm != null ? this.norm.hashCode() : 0);
hash = 73 * hash + (this.tang4d != null ? this.tang4d.hashCode() : 0);
hash = 73 * hash + (this.tang != null ? this.tang.hashCode() : 0);
hash = 73 * hash + (this.uv0 != null ? this.uv0.hashCode() : 0);
hash = 73 * hash + (this.uv1 != null ? this.uv1.hashCode() : 0);
hash = 73 * hash + (this.color != null ? this.color.hashCode() : 0);
hash = 73 * hash + (this.material != null ? this.material.hashCode() : 0);
hash = 73 * hash + (this.smoothing != null ? this.smoothing.hashCode() : 0);
hash = 73 * hash + Arrays.deepHashCode(this.boneWeightsIndices);
return hash;
}
代码示例来源:origin: org.jmonkeyengine/jme3-plugins
@Override
public int hashCode() {
int hash = 5;
hash = 73 * hash + (this.pos != null ? this.pos.hashCode() : 0);
hash = 73 * hash + (this.norm != null ? this.norm.hashCode() : 0);
hash = 73 * hash + (this.tang4d != null ? this.tang4d.hashCode() : 0);
hash = 73 * hash + (this.tang != null ? this.tang.hashCode() : 0);
hash = 73 * hash + (this.uv0 != null ? this.uv0.hashCode() : 0);
hash = 73 * hash + (this.uv1 != null ? this.uv1.hashCode() : 0);
hash = 73 * hash + (this.color != null ? this.color.hashCode() : 0);
hash = 73 * hash + (this.material != null ? this.material.hashCode() : 0);
hash = 73 * hash + (this.smoothing != null ? this.smoothing.hashCode() : 0);
hash = 73 * hash + Arrays.deepHashCode(this.boneWeightsIndices);
return hash;
}