當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。