Пример #1
0
func (self *Vector3) IsPerpendicularEpsilon(vector *Vector3, epsilon float32) bool {
	return utils.IsZeroTolerance(self.DotV(vector), epsilon)
}
Пример #2
0
// return If this quaternion is an identity Quaternion
func (self *Quaternion) IsIdentityTolerance(tolerance float32) bool {
	return utils.IsZeroTolerance(self.x, tolerance) && utils.IsZeroTolerance(self.y, tolerance) &&
		utils.IsZeroTolerance(self.z, tolerance) && utils.IsEqualTolerance(self.w, 1, tolerance)
}