当前位置: 首页>>代码示例>>Java>>正文


Java Compare.equals方法代码示例

本文整理汇总了Java中com.hackoeur.jglm.support.Compare.equals方法的典型用法代码示例。如果您正苦于以下问题:Java Compare.equals方法的具体用法?Java Compare.equals怎么用?Java Compare.equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.hackoeur.jglm.support.Compare的用法示例。


在下文中一共展示了Compare.equals方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: equalsWithEpsilon

import com.hackoeur.jglm.support.Compare; //导入方法依赖的package包/类
@Override
public boolean equalsWithEpsilon(final Vec obj, final float epsilon) {
	if (this == obj) {
		return true;
	}
	
	if (obj == null) {
		return false;
	}
	
	if (!(obj instanceof Vec4)) {
		return false;
	}
	
	Vec4 other = (Vec4) obj;
	
	return Compare.equals(x, other.x, epsilon)
			&& Compare.equals(y, other.y, epsilon)
			&& Compare.equals(z, other.z, epsilon)
			&& Compare.equals(w, other.w, epsilon);
}
 
开发者ID:StavrosSkourtis,项目名称:SuperHornet,代码行数:22,代码来源:Vec4.java

示例2: isIdentity

import com.hackoeur.jglm.support.Compare; //导入方法依赖的package包/类
@Override
public boolean isIdentity() {
	return Compare.equals(m00, 1f, Compare.MAT_EPSILON)
			&& Compare.equals(m11, 1f, Compare.MAT_EPSILON)
			&& Compare.equals(m22, 1f, Compare.MAT_EPSILON)
			&& Compare.equals(m33, 1f, Compare.MAT_EPSILON)
			
			&& Compare.equalsZero(m01)
			&& Compare.equalsZero(m02)
			&& Compare.equalsZero(m03)
			
			&& Compare.equalsZero(m10)
			&& Compare.equalsZero(m12)
			&& Compare.equalsZero(m13)
			
			&& Compare.equalsZero(m20)
			&& Compare.equalsZero(m21)
			&& Compare.equalsZero(m23)
	
			&& Compare.equalsZero(m30)
			&& Compare.equalsZero(m31)
			&& Compare.equalsZero(m32);
}
 
开发者ID:StavrosSkourtis,项目名称:SuperHornet,代码行数:24,代码来源:Mat4.java

示例3: equalsWithEpsilon

import com.hackoeur.jglm.support.Compare; //导入方法依赖的package包/类
@Override
public boolean equalsWithEpsilon(final Vec obj, final float epsilon) {
	if (this == obj) {
		return true;
	}
	
	if (obj == null) {
		return false;
	}
	
	if (!(obj instanceof Vec3)) {
		return false;
	}
	
	final Vec3 other = (Vec3) obj;
	
	return Compare.equals(x, other.x, epsilon)
			&& Compare.equals(y, other.y, epsilon)
			&& Compare.equals(z, other.z, epsilon);
}
 
开发者ID:StavrosSkourtis,项目名称:SuperHornet,代码行数:21,代码来源:Vec3.java

示例4: equalsWithEpsilon

import com.hackoeur.jglm.support.Compare; //导入方法依赖的package包/类
@Override
public boolean equalsWithEpsilon(final Mat obj, final float epsilon) {
	if (this == obj) {
		return true;
	}
	
	if (obj == null) {
		return false;
	}
	
	if (!(obj instanceof Mat4)) {
		return false;
	}
	
	final Mat4 other = (Mat4) obj;
	
	return Compare.equals(m00, other.m00, epsilon)
			&& Compare.equals(m01, other.m01, epsilon)
			&& Compare.equals(m02, other.m02, epsilon)
			&& Compare.equals(m03, other.m03, epsilon)
			
			&& Compare.equals(m10, other.m10, epsilon)
			&& Compare.equals(m11, other.m11, epsilon)
			&& Compare.equals(m12, other.m12, epsilon)
			&& Compare.equals(m13, other.m13, epsilon)
			
			&& Compare.equals(m20, other.m20, epsilon)
			&& Compare.equals(m21, other.m21, epsilon)
			&& Compare.equals(m22, other.m22, epsilon)
			&& Compare.equals(m23, other.m23, epsilon)
			
			&& Compare.equals(m30, other.m30, epsilon)
			&& Compare.equals(m31, other.m31, epsilon)
			&& Compare.equals(m32, other.m32, epsilon)
			&& Compare.equals(m33, other.m33, epsilon);
}
 
开发者ID:StavrosSkourtis,项目名称:SuperHornet,代码行数:37,代码来源:Mat4.java

示例5: isIdentity

import com.hackoeur.jglm.support.Compare; //导入方法依赖的package包/类
@Override
public boolean isIdentity() {
	return Compare.equals(m00, 1f, Compare.MAT_EPSILON)
			&& Compare.equals(m11, 1f, Compare.MAT_EPSILON)
			&& Compare.equals(m22, 1f, Compare.MAT_EPSILON)
			
			&& Compare.equalsZero(m01)
			&& Compare.equalsZero(m02)
			
			&& Compare.equalsZero(m10)
			&& Compare.equalsZero(m12)
			
			&& Compare.equalsZero(m20)
			&& Compare.equalsZero(m21);
}
 
开发者ID:StavrosSkourtis,项目名称:SuperHornet,代码行数:16,代码来源:Mat3.java

示例6: equalsWithEpsilon

import com.hackoeur.jglm.support.Compare; //导入方法依赖的package包/类
@Override
public boolean equalsWithEpsilon(final Mat obj, final float epsilon) {
	if (this == obj) {
		return true;
	}
	
	if (obj == null) {
		return false;
	}
	
	if (!(obj instanceof Mat3)) {
		return false;
	}
	
	final Mat3 other = (Mat3) obj;
	
	return Compare.equals(m00, other.m00, epsilon)
			&& Compare.equals(m01, other.m01, epsilon)
			&& Compare.equals(m02, other.m02, epsilon)
			
			&& Compare.equals(m10, other.m10, epsilon)
			&& Compare.equals(m11, other.m11, epsilon)
			&& Compare.equals(m12, other.m12, epsilon)
			
			&& Compare.equals(m20, other.m20, epsilon)
			&& Compare.equals(m21, other.m21, epsilon)
			&& Compare.equals(m22, other.m22, epsilon);
}
 
开发者ID:StavrosSkourtis,项目名称:SuperHornet,代码行数:29,代码来源:Mat3.java


注:本文中的com.hackoeur.jglm.support.Compare.equals方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。