Beispiel #1
0
gfloat soy_atoms_vector_magnitude (soyatomsVector* self) {
	gfloat result = 0.0F;
	gfloat _tmp0_;
	gfloat _tmp1_;
	gfloat _tmp2_;
	gfloat _tmp3_;
	gfloat _tmp4_;
	gfloat _tmp5_;
	gfloat _tmp6_;
	gfloat _tmp7_;
	gfloat _tmp8_;
	gfloat _tmp9_;
	gfloat _tmp10_;
	gfloat _tmp11_;
	gfloat _tmp12_ = 0.0F;
	g_return_val_if_fail (self != NULL, 0.0F);
	_tmp0_ = soy_atoms_vector_get_x (self);
	_tmp1_ = _tmp0_;
	_tmp2_ = soy_atoms_vector_get_x (self);
	_tmp3_ = _tmp2_;
	_tmp4_ = soy_atoms_vector_get_y (self);
	_tmp5_ = _tmp4_;
	_tmp6_ = soy_atoms_vector_get_y (self);
	_tmp7_ = _tmp6_;
	_tmp8_ = soy_atoms_vector_get_z (self);
	_tmp9_ = _tmp8_;
	_tmp10_ = soy_atoms_vector_get_z (self);
	_tmp11_ = _tmp10_;
	_tmp12_ = sqrtf (((_tmp1_ * _tmp3_) + (_tmp5_ * _tmp7_)) + (_tmp9_ * _tmp11_));
	result = _tmp12_;
	return result;
}
Beispiel #2
0
void soy_atoms_vector_subtract (soyatomsVector* self, soyatomsVector* other) {
	gfloat _tmp0_;
	gfloat _tmp1_;
	soyatomsVector* _tmp2_;
	gfloat _tmp3_;
	gfloat _tmp4_;
	gfloat _tmp5_;
	gfloat _tmp6_;
	soyatomsVector* _tmp7_;
	gfloat _tmp8_;
	gfloat _tmp9_;
	gfloat _tmp10_;
	gfloat _tmp11_;
	soyatomsVector* _tmp12_;
	gfloat _tmp13_;
	gfloat _tmp14_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (other != NULL);
	_tmp0_ = soy_atoms_vector_get_x (self);
	_tmp1_ = _tmp0_;
	_tmp2_ = other;
	_tmp3_ = soy_atoms_vector_get_x (_tmp2_);
	_tmp4_ = _tmp3_;
	soy_atoms_vector_set_x (self, _tmp1_ - _tmp4_);
	_tmp5_ = soy_atoms_vector_get_y (self);
	_tmp6_ = _tmp5_;
	_tmp7_ = other;
	_tmp8_ = soy_atoms_vector_get_y (_tmp7_);
	_tmp9_ = _tmp8_;
	soy_atoms_vector_set_y (self, _tmp6_ - _tmp9_);
	_tmp10_ = soy_atoms_vector_get_z (self);
	_tmp11_ = _tmp10_;
	_tmp12_ = other;
	_tmp13_ = soy_atoms_vector_get_z (_tmp12_);
	_tmp14_ = _tmp13_;
	soy_atoms_vector_set_z (self, _tmp11_ - _tmp14_);
}
Beispiel #3
0
gfloat soy_atoms_vector_dot (soyatomsVector* self, soyatomsVector* other) {
	gfloat result = 0.0F;
	gfloat _tmp0_;
	gfloat _tmp1_;
	soyatomsVector* _tmp2_;
	gfloat _tmp3_;
	gfloat _tmp4_;
	gfloat _tmp5_;
	gfloat _tmp6_;
	soyatomsVector* _tmp7_;
	gfloat _tmp8_;
	gfloat _tmp9_;
	gfloat _tmp10_;
	gfloat _tmp11_;
	soyatomsVector* _tmp12_;
	gfloat _tmp13_;
	gfloat _tmp14_;
	g_return_val_if_fail (self != NULL, 0.0F);
	g_return_val_if_fail (other != NULL, 0.0F);
	_tmp0_ = soy_atoms_vector_get_x (self);
	_tmp1_ = _tmp0_;
	_tmp2_ = other;
	_tmp3_ = soy_atoms_vector_get_x (_tmp2_);
	_tmp4_ = _tmp3_;
	_tmp5_ = soy_atoms_vector_get_y (self);
	_tmp6_ = _tmp5_;
	_tmp7_ = other;
	_tmp8_ = soy_atoms_vector_get_y (_tmp7_);
	_tmp9_ = _tmp8_;
	_tmp10_ = soy_atoms_vector_get_z (self);
	_tmp11_ = _tmp10_;
	_tmp12_ = other;
	_tmp13_ = soy_atoms_vector_get_z (_tmp12_);
	_tmp14_ = _tmp13_;
	result = ((_tmp1_ * _tmp4_) + (_tmp6_ * _tmp9_)) + (_tmp11_ * _tmp14_);
	return result;
}
Beispiel #4
0
static void _vala_soy_atoms_vector_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	soyatomsVector * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, SOY_ATOMS_TYPE_VECTOR, soyatomsVector);
	switch (property_id) {
		case SOY_ATOMS_VECTOR_X:
		g_value_set_float (value, soy_atoms_vector_get_x (self));
		break;
		case SOY_ATOMS_VECTOR_Y:
		g_value_set_float (value, soy_atoms_vector_get_y (self));
		break;
		case SOY_ATOMS_VECTOR_Z:
		g_value_set_float (value, soy_atoms_vector_get_z (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}
Beispiel #5
0
void soy_atoms_vector_normalize (soyatomsVector* self) {
	gfloat _tmp0_ = 0.0F;
	gfloat length;
	gfloat _tmp1_;
	gfloat _tmp2_;
	gfloat _tmp3_;
	gfloat _tmp4_;
	gfloat _tmp5_;
	gfloat _tmp6_;
	g_return_if_fail (self != NULL);
	_tmp0_ = soy_atoms_vector_magnitude (self);
	length = _tmp0_;
	_tmp1_ = soy_atoms_vector_get_x (self);
	_tmp2_ = _tmp1_;
	soy_atoms_vector_set_x (self, _tmp2_ / length);
	_tmp3_ = soy_atoms_vector_get_y (self);
	_tmp4_ = _tmp3_;
	soy_atoms_vector_set_y (self, _tmp4_ / length);
	_tmp5_ = soy_atoms_vector_get_z (self);
	_tmp6_ = _tmp5_;
	soy_atoms_vector_set_z (self, _tmp6_ / length);
}
Beispiel #6
0
soyatomsVector* soy_bodies_camera_projectVector (soybodiesCamera* self, soyatomsVector* v, gfloat aspect) {
	soyatomsVector* result = NULL;
	gfloat zFar = 0.0F;
	GLfloat _tmp0_ = 0.0F;
	gfloat zNear = 0.0F;
	GLfloat _tmp1_ = 0.0F;
	gfloat fovy = 0.0F;
	GLfloat _tmp2_ = 0.0F;
	GLfloat* m = NULL;
	gint m_length1 = 0;
	gint _m_size_ = 0;
	gfloat deltaZ = 0.0F;
	gfloat _tmp3_ = 0.0F;
	gfloat _tmp4_ = 0.0F;
	gfloat radians = 0.0F;
	gfloat _tmp5_ = 0.0F;
	gfloat sine = 0.0F;
	gfloat _tmp6_ = 0.0F;
	gfloat _tmp7_ = 0.0F;
	gboolean _tmp8_ = FALSE;
	gboolean _tmp9_ = FALSE;
	gfloat _tmp10_ = 0.0F;
	gboolean _tmp12_ = FALSE;
	gboolean _tmp14_ = FALSE;
	gfloat cotangent = 0.0F;
	gfloat _tmp16_ = 0.0F;
	gfloat _tmp17_ = 0.0F;
	gfloat _tmp18_ = 0.0F;
	GLfloat* _tmp19_ = NULL;
	GLfloat* _tmp20_ = NULL;
	gint _tmp20__length1 = 0;
	gfloat _tmp21_ = 0.0F;
	gfloat _tmp22_ = 0.0F;
	GLfloat _tmp23_ = 0.0F;
	GLfloat* _tmp24_ = NULL;
	gint _tmp24__length1 = 0;
	gfloat _tmp25_ = 0.0F;
	GLfloat _tmp26_ = 0.0F;
	GLfloat* _tmp27_ = NULL;
	gint _tmp27__length1 = 0;
	gfloat _tmp28_ = 0.0F;
	gfloat _tmp29_ = 0.0F;
	gfloat _tmp30_ = 0.0F;
	GLfloat _tmp31_ = 0.0F;
	GLfloat* _tmp32_ = NULL;
	gint _tmp32__length1 = 0;
	gfloat _tmp33_ = 0.0F;
	gfloat _tmp34_ = 0.0F;
	gfloat _tmp35_ = 0.0F;
	GLfloat _tmp36_ = 0.0F;
	gfloat x = 0.0F;
	GLfloat* _tmp37_ = NULL;
	gint _tmp37__length1 = 0;
	GLfloat _tmp38_ = 0.0F;
	soyatomsVector* _tmp39_ = NULL;
	gfloat _tmp40_ = 0.0F;
	gfloat _tmp41_ = 0.0F;
	GLfloat* _tmp42_ = NULL;
	gint _tmp42__length1 = 0;
	GLfloat _tmp43_ = 0.0F;
	soyatomsVector* _tmp44_ = NULL;
	gfloat _tmp45_ = 0.0F;
	gfloat _tmp46_ = 0.0F;
	GLfloat* _tmp47_ = NULL;
	gint _tmp47__length1 = 0;
	GLfloat _tmp48_ = 0.0F;
	soyatomsVector* _tmp49_ = NULL;
	gfloat _tmp50_ = 0.0F;
	gfloat _tmp51_ = 0.0F;
	GLfloat* _tmp52_ = NULL;
	gint _tmp52__length1 = 0;
	GLfloat _tmp53_ = 0.0F;
	gfloat y = 0.0F;
	GLfloat* _tmp54_ = NULL;
	gint _tmp54__length1 = 0;
	GLfloat _tmp55_ = 0.0F;
	soyatomsVector* _tmp56_ = NULL;
	gfloat _tmp57_ = 0.0F;
	gfloat _tmp58_ = 0.0F;
	GLfloat* _tmp59_ = NULL;
	gint _tmp59__length1 = 0;
	GLfloat _tmp60_ = 0.0F;
	soyatomsVector* _tmp61_ = NULL;
	gfloat _tmp62_ = 0.0F;
	gfloat _tmp63_ = 0.0F;
	GLfloat* _tmp64_ = NULL;
	gint _tmp64__length1 = 0;
	GLfloat _tmp65_ = 0.0F;
	soyatomsVector* _tmp66_ = NULL;
	gfloat _tmp67_ = 0.0F;
	gfloat _tmp68_ = 0.0F;
	GLfloat* _tmp69_ = NULL;
	gint _tmp69__length1 = 0;
	GLfloat _tmp70_ = 0.0F;
	gfloat z = 0.0F;
	GLfloat* _tmp71_ = NULL;
	gint _tmp71__length1 = 0;
	GLfloat _tmp72_ = 0.0F;
	soyatomsVector* _tmp73_ = NULL;
	gfloat _tmp74_ = 0.0F;
	gfloat _tmp75_ = 0.0F;
	GLfloat* _tmp76_ = NULL;
	gint _tmp76__length1 = 0;
	GLfloat _tmp77_ = 0.0F;
	soyatomsVector* _tmp78_ = NULL;
	gfloat _tmp79_ = 0.0F;
	gfloat _tmp80_ = 0.0F;
	GLfloat* _tmp81_ = NULL;
	gint _tmp81__length1 = 0;
	GLfloat _tmp82_ = 0.0F;
	soyatomsVector* _tmp83_ = NULL;
	gfloat _tmp84_ = 0.0F;
	gfloat _tmp85_ = 0.0F;
	GLfloat* _tmp86_ = NULL;
	gint _tmp86__length1 = 0;
	GLfloat _tmp87_ = 0.0F;
	gfloat w = 0.0F;
	GLfloat* _tmp88_ = NULL;
	gint _tmp88__length1 = 0;
	GLfloat _tmp89_ = 0.0F;
	soyatomsVector* _tmp90_ = NULL;
	gfloat _tmp91_ = 0.0F;
	gfloat _tmp92_ = 0.0F;
	GLfloat* _tmp93_ = NULL;
	gint _tmp93__length1 = 0;
	GLfloat _tmp94_ = 0.0F;
	soyatomsVector* _tmp95_ = NULL;
	gfloat _tmp96_ = 0.0F;
	gfloat _tmp97_ = 0.0F;
	GLfloat* _tmp98_ = NULL;
	gint _tmp98__length1 = 0;
	GLfloat _tmp99_ = 0.0F;
	soyatomsVector* _tmp100_ = NULL;
	gfloat _tmp101_ = 0.0F;
	gfloat _tmp102_ = 0.0F;
	GLfloat* _tmp103_ = NULL;
	gint _tmp103__length1 = 0;
	GLfloat _tmp104_ = 0.0F;
	gfloat _tmp105_ = 0.0F;
	gfloat _tmp106_ = 0.0F;
	gfloat _tmp107_ = 0.0F;
	gfloat _tmp108_ = 0.0F;
	gfloat _tmp109_ = 0.0F;
	gfloat _tmp110_ = 0.0F;
	soyatomsVector* _tmp111_ = NULL;
#line 42 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	g_return_val_if_fail (self != NULL, NULL);
#line 42 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	g_return_val_if_fail (v != NULL, NULL);
#line 45 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp0_ = self->priv->_zfar;
#line 45 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	zFar = (gfloat) _tmp0_;
#line 46 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp1_ = self->priv->_znear;
#line 46 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	zNear = (gfloat) _tmp1_;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp2_ = self->priv->_lens;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	fovy = (gfloat) _tmp2_;
#line 50 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp3_ = zFar;
#line 50 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp4_ = zNear;
#line 50 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	deltaZ = _tmp3_ - _tmp4_;
#line 51 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp5_ = fovy;
#line 51 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	radians = ((_tmp5_ / 2.0f) * 3.141592653589793f) / 180.0f;
#line 52 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp6_ = radians;
#line 52 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp7_ = sinf (_tmp6_);
#line 52 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	sine = _tmp7_;
#line 55 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp10_ = deltaZ;
#line 55 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	if (_tmp10_ == 0.0f) {
#line 55 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
		_tmp9_ = TRUE;
#line 396 "Camera.c"
	} else {
		gfloat _tmp11_ = 0.0F;
#line 55 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
		_tmp11_ = sine;
#line 55 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
		_tmp9_ = _tmp11_ == 0.0f;
#line 403 "Camera.c"
	}
#line 55 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp12_ = _tmp9_;
#line 55 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	if (_tmp12_) {
#line 55 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
		_tmp8_ = TRUE;
#line 411 "Camera.c"
	} else {
		gfloat _tmp13_ = 0.0F;
#line 55 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
		_tmp13_ = aspect;
#line 55 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
		_tmp8_ = _tmp13_ == 0.0f;
#line 418 "Camera.c"
	}
#line 55 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp14_ = _tmp8_;
#line 55 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	if (_tmp14_) {
#line 424 "Camera.c"
		soyatomsVector* _tmp15_ = NULL;
#line 56 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
		_tmp15_ = soy_atoms_vector_new ((gfloat) 0, (gfloat) 0, (gfloat) 0);
#line 56 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
		result = _tmp15_;
#line 56 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
		m = (g_free (m), NULL);
#line 56 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
		return result;
#line 434 "Camera.c"
	}
#line 58 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp16_ = radians;
#line 58 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp17_ = cosf (_tmp16_);
#line 58 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp18_ = sine;
#line 58 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	cotangent = _tmp17_ / _tmp18_;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_ = g_new0 (GLfloat, 16);
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_[0] = (GLfloat) 1.0f;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_[1] = (GLfloat) 0.0f;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_[2] = (GLfloat) 0.0f;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_[3] = (GLfloat) 0.0f;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_[4] = (GLfloat) 0.0f;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_[5] = (GLfloat) 1.0f;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_[6] = (GLfloat) 0.0f;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_[7] = (GLfloat) 0.0f;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_[8] = (GLfloat) 0.0f;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_[9] = (GLfloat) 0.0f;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_[10] = (GLfloat) 1.0f;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_[11] = (GLfloat) (-1.0f);
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_[12] = (GLfloat) 0.0f;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_[13] = (GLfloat) 0.0f;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_[14] = (GLfloat) 0.0f;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp19_[15] = (GLfloat) 0.0f;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	m = (g_free (m), NULL);
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	m = _tmp19_;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	m_length1 = 16;
#line 61 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_m_size_ = m_length1;
#line 66 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp20_ = m;
#line 66 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp20__length1 = m_length1;
#line 66 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp21_ = cotangent;
#line 66 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp22_ = aspect;
#line 66 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp20_[0] = (GLfloat) (_tmp21_ / _tmp22_);
#line 66 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp23_ = _tmp20_[0];
#line 67 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp24_ = m;
#line 67 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp24__length1 = m_length1;
#line 67 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp25_ = cotangent;
#line 67 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp24_[5] = (GLfloat) _tmp25_;
#line 67 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp26_ = _tmp24_[5];
#line 68 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp27_ = m;
#line 68 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp27__length1 = m_length1;
#line 68 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp28_ = zFar;
#line 68 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp29_ = zNear;
#line 68 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp30_ = deltaZ;
#line 68 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp27_[10] = (GLfloat) ((-(_tmp28_ + _tmp29_)) / _tmp30_);
#line 68 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp31_ = _tmp27_[10];
#line 69 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp32_ = m;
#line 69 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp32__length1 = m_length1;
#line 69 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp33_ = zNear;
#line 69 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp34_ = zFar;
#line 69 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp35_ = deltaZ;
#line 69 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp32_[14] = (GLfloat) ((((-2.0f) * _tmp33_) * _tmp34_) / _tmp35_);
#line 69 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp36_ = _tmp32_[14];
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp37_ = m;
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp37__length1 = m_length1;
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp38_ = _tmp37_[0];
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp39_ = v;
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp40_ = soy_atoms_vector_get_x (_tmp39_);
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp41_ = _tmp40_;
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp42_ = m;
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp42__length1 = m_length1;
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp43_ = _tmp42_[4];
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp44_ = v;
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp45_ = soy_atoms_vector_get_y (_tmp44_);
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp46_ = _tmp45_;
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp47_ = m;
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp47__length1 = m_length1;
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp48_ = _tmp47_[8];
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp49_ = v;
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp50_ = soy_atoms_vector_get_z (_tmp49_);
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp51_ = _tmp50_;
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp52_ = m;
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp52__length1 = m_length1;
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp53_ = _tmp52_[12];
#line 71 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	x = (gfloat) ((((_tmp38_ * _tmp41_) + (_tmp43_ * _tmp46_)) + (_tmp48_ * _tmp51_)) + _tmp53_);
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp54_ = m;
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp54__length1 = m_length1;
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp55_ = _tmp54_[1];
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp56_ = v;
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp57_ = soy_atoms_vector_get_x (_tmp56_);
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp58_ = _tmp57_;
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp59_ = m;
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp59__length1 = m_length1;
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp60_ = _tmp59_[5];
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp61_ = v;
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp62_ = soy_atoms_vector_get_y (_tmp61_);
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp63_ = _tmp62_;
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp64_ = m;
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp64__length1 = m_length1;
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp65_ = _tmp64_[9];
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp66_ = v;
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp67_ = soy_atoms_vector_get_z (_tmp66_);
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp68_ = _tmp67_;
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp69_ = m;
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp69__length1 = m_length1;
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp70_ = _tmp69_[13];
#line 72 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	y = (gfloat) ((((_tmp55_ * _tmp58_) + (_tmp60_ * _tmp63_)) + (_tmp65_ * _tmp68_)) + _tmp70_);
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp71_ = m;
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp71__length1 = m_length1;
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp72_ = _tmp71_[2];
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp73_ = v;
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp74_ = soy_atoms_vector_get_x (_tmp73_);
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp75_ = _tmp74_;
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp76_ = m;
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp76__length1 = m_length1;
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp77_ = _tmp76_[6];
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp78_ = v;
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp79_ = soy_atoms_vector_get_y (_tmp78_);
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp80_ = _tmp79_;
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp81_ = m;
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp81__length1 = m_length1;
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp82_ = _tmp81_[10];
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp83_ = v;
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp84_ = soy_atoms_vector_get_z (_tmp83_);
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp85_ = _tmp84_;
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp86_ = m;
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp86__length1 = m_length1;
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp87_ = _tmp86_[14];
#line 73 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	z = (gfloat) ((((_tmp72_ * _tmp75_) + (_tmp77_ * _tmp80_)) + (_tmp82_ * _tmp85_)) + _tmp87_);
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp88_ = m;
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp88__length1 = m_length1;
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp89_ = _tmp88_[3];
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp90_ = v;
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp91_ = soy_atoms_vector_get_x (_tmp90_);
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp92_ = _tmp91_;
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp93_ = m;
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp93__length1 = m_length1;
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp94_ = _tmp93_[7];
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp95_ = v;
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp96_ = soy_atoms_vector_get_y (_tmp95_);
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp97_ = _tmp96_;
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp98_ = m;
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp98__length1 = m_length1;
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp99_ = _tmp98_[11];
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp100_ = v;
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp101_ = soy_atoms_vector_get_z (_tmp100_);
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp102_ = _tmp101_;
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp103_ = m;
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp103__length1 = m_length1;
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp104_ = _tmp103_[15];
#line 74 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	w = (gfloat) ((((_tmp89_ * _tmp92_) + (_tmp94_ * _tmp97_)) + (_tmp99_ * _tmp102_)) + _tmp104_);
#line 76 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp105_ = x;
#line 76 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp106_ = w;
#line 76 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp107_ = y;
#line 76 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp108_ = w;
#line 76 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp109_ = z;
#line 76 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp110_ = w;
#line 76 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	_tmp111_ = soy_atoms_vector_new (_tmp105_ / _tmp106_, _tmp107_ / _tmp108_, _tmp109_ / _tmp110_);
#line 76 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	result = _tmp111_;
#line 76 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	m = (g_free (m), NULL);
#line 76 "/home/jeff/Documents/libraries/libsoy/src/bodies/Camera.gs"
	return result;
#line 732 "Camera.c"
}
Beispiel #7
0
static gboolean soy_fields_wind_real_exert (soyfieldsField* base, soybodiesBody* other) {
	soyfieldsWind * self;
	gboolean result = FALSE;
	soybodiesBody* _tmp0_ = NULL;
	GeeHashMap* _tmp1_ = NULL;
	GeeHashMap* _tmp2_ = NULL;
	GeeHashMap* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
#line 38 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
	self = (soyfieldsWind*) base;
#line 38 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
	g_return_val_if_fail (other != NULL, FALSE);
#line 39 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
	_tmp0_ = other;
#line 39 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
	_tmp1_ = soy_bodies_body_get_tags (_tmp0_);
#line 39 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
	_tmp2_ = _tmp1_;
#line 39 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
	_tmp3_ = _tmp2_;
#line 39 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
	_tmp4_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp3_, "cd");
#line 39 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
	_tmp5_ = _tmp4_;
#line 39 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
	_g_object_unref0 (_tmp3_);
#line 39 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
	if (_tmp5_) {
#line 223 "Wind.c"
		gfloat dx = 0.0F;
		soyatomsVector* _tmp6_ = NULL;
		soyatomsVector* _tmp7_ = NULL;
		soyatomsVector* _tmp8_ = NULL;
		gfloat _tmp9_ = 0.0F;
		gfloat _tmp10_ = 0.0F;
		soybodiesBody* _tmp11_ = NULL;
		soyatomsVector* _tmp12_ = NULL;
		soyatomsVector* _tmp13_ = NULL;
		soyatomsVector* _tmp14_ = NULL;
		gfloat _tmp15_ = 0.0F;
		gfloat _tmp16_ = 0.0F;
		gfloat _tmp17_ = 0.0F;
		gfloat dy = 0.0F;
		soyatomsVector* _tmp18_ = NULL;
		soyatomsVector* _tmp19_ = NULL;
		soyatomsVector* _tmp20_ = NULL;
		gfloat _tmp21_ = 0.0F;
		gfloat _tmp22_ = 0.0F;
		soybodiesBody* _tmp23_ = NULL;
		soyatomsVector* _tmp24_ = NULL;
		soyatomsVector* _tmp25_ = NULL;
		soyatomsVector* _tmp26_ = NULL;
		gfloat _tmp27_ = 0.0F;
		gfloat _tmp28_ = 0.0F;
		gfloat _tmp29_ = 0.0F;
		gfloat dz = 0.0F;
		soyatomsVector* _tmp30_ = NULL;
		soyatomsVector* _tmp31_ = NULL;
		soyatomsVector* _tmp32_ = NULL;
		gfloat _tmp33_ = 0.0F;
		gfloat _tmp34_ = 0.0F;
		soybodiesBody* _tmp35_ = NULL;
		soyatomsVector* _tmp36_ = NULL;
		soyatomsVector* _tmp37_ = NULL;
		soyatomsVector* _tmp38_ = NULL;
		gfloat _tmp39_ = 0.0F;
		gfloat _tmp40_ = 0.0F;
		gfloat _tmp41_ = 0.0F;
		gfloat d2 = 0.0F;
		gfloat _tmp42_ = 0.0F;
		gfloat _tmp43_ = 0.0F;
		gfloat _tmp44_ = 0.0F;
		gfloat _tmp45_ = 0.0F;
		gfloat _tmp46_ = 0.0F;
		gfloat _tmp47_ = 0.0F;
		gfloat _tmp48_ = 0.0F;
#line 40 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp6_ = soy_fields_wind_get_wind (self);
#line 40 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp7_ = _tmp6_;
#line 40 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp8_ = _tmp7_;
#line 40 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp9_ = soy_atoms_vector_get_x (_tmp8_);
#line 40 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp10_ = _tmp9_;
#line 40 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp11_ = other;
#line 40 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp12_ = soy_bodies_body_get_velocity (_tmp11_);
#line 40 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp13_ = _tmp12_;
#line 40 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp14_ = _tmp13_;
#line 40 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp15_ = soy_atoms_vector_get_x (_tmp14_);
#line 40 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp16_ = _tmp15_;
#line 40 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp17_ = _tmp10_ - _tmp16_;
#line 40 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_g_object_unref0 (_tmp14_);
#line 40 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_g_object_unref0 (_tmp8_);
#line 40 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		dx = _tmp17_;
#line 41 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp18_ = soy_fields_wind_get_wind (self);
#line 41 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp19_ = _tmp18_;
#line 41 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp20_ = _tmp19_;
#line 41 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp21_ = soy_atoms_vector_get_y (_tmp20_);
#line 41 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp22_ = _tmp21_;
#line 41 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp23_ = other;
#line 41 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp24_ = soy_bodies_body_get_velocity (_tmp23_);
#line 41 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp25_ = _tmp24_;
#line 41 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp26_ = _tmp25_;
#line 41 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp27_ = soy_atoms_vector_get_y (_tmp26_);
#line 41 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp28_ = _tmp27_;
#line 41 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp29_ = _tmp22_ - _tmp28_;
#line 41 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_g_object_unref0 (_tmp26_);
#line 41 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_g_object_unref0 (_tmp20_);
#line 41 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		dy = _tmp29_;
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp30_ = soy_fields_wind_get_wind (self);
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp31_ = _tmp30_;
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp32_ = _tmp31_;
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp33_ = soy_atoms_vector_get_z (_tmp32_);
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp34_ = _tmp33_;
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp35_ = other;
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp36_ = soy_bodies_body_get_velocity (_tmp35_);
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp37_ = _tmp36_;
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp38_ = _tmp37_;
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp39_ = soy_atoms_vector_get_z (_tmp38_);
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp40_ = _tmp39_;
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp41_ = _tmp34_ - _tmp40_;
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_g_object_unref0 (_tmp38_);
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_g_object_unref0 (_tmp32_);
#line 42 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		dz = _tmp41_;
#line 43 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp42_ = dx;
#line 43 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp43_ = dx;
#line 43 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp44_ = dy;
#line 43 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp45_ = dy;
#line 43 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp46_ = dz;
#line 43 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp47_ = dz;
#line 43 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		d2 = ((_tmp42_ * _tmp43_) + (_tmp44_ * _tmp45_)) + (_tmp46_ * _tmp47_);
#line 44 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		_tmp48_ = d2;
#line 44 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
		if (_tmp48_ != ((gfloat) 0)) {
#line 379 "Wind.c"
			gfloat f = 0.0F;
			gfloat _tmp49_ = 0.0F;
			gfloat _tmp50_ = 0.0F;
			soybodiesBody* _tmp51_ = NULL;
			GeeHashMap* _tmp52_ = NULL;
			GeeHashMap* _tmp53_ = NULL;
			GeeHashMap* _tmp54_ = NULL;
			gpointer _tmp55_ = NULL;
			gfloat _tmp56_ = 0.0F;
			gfloat r = 0.0F;
			gfloat _tmp57_ = 0.0F;
			gfloat _tmp58_ = 0.0F;
			gfloat _tmp59_ = 0.0F;
			gboolean _tmp60_ = FALSE;
			gboolean _tmp61_ = FALSE;
			soybodiesBody* _tmp62_ = NULL;
			GeeHashMap* _tmp63_ = NULL;
			GeeHashMap* _tmp64_ = NULL;
			GeeHashMap* _tmp65_ = NULL;
			gboolean _tmp66_ = FALSE;
			gboolean _tmp67_ = FALSE;
			gboolean _tmp73_ = FALSE;
			gboolean _tmp79_ = FALSE;
#line 45 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp49_ = self->priv->_viscosity;
#line 45 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp50_ = d2;
#line 45 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp51_ = other;
#line 45 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp52_ = soy_bodies_body_get_tags (_tmp51_);
#line 45 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp53_ = _tmp52_;
#line 45 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp54_ = _tmp53_;
#line 45 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp55_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp54_, "cd");
#line 45 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp56_ = ((0.5f * _tmp49_) * _tmp50_) * ((gfloat) (*((gfloat*) _tmp55_)));
#line 45 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_g_object_unref0 (_tmp54_);
#line 45 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			f = _tmp56_;
#line 46 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp57_ = f;
#line 46 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp58_ = d2;
#line 46 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp59_ = sqrtf (_tmp58_);
#line 46 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			r = _tmp57_ / _tmp59_;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp62_ = other;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp63_ = soy_bodies_body_get_tags (_tmp62_);
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp64_ = _tmp63_;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp65_ = _tmp64_;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp66_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp65_, "cpx");
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp67_ = _tmp66_;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_g_object_unref0 (_tmp65_);
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			if (_tmp67_) {
#line 447 "Wind.c"
				soybodiesBody* _tmp68_ = NULL;
				GeeHashMap* _tmp69_ = NULL;
				GeeHashMap* _tmp70_ = NULL;
				GeeHashMap* _tmp71_ = NULL;
				gboolean _tmp72_ = FALSE;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp68_ = other;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp69_ = soy_bodies_body_get_tags (_tmp68_);
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp70_ = _tmp69_;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp71_ = _tmp70_;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp72_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp71_, "cpy");
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp61_ = _tmp72_;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_g_object_unref0 (_tmp71_);
#line 467 "Wind.c"
			} else {
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp61_ = FALSE;
#line 471 "Wind.c"
			}
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp73_ = _tmp61_;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			if (_tmp73_) {
#line 477 "Wind.c"
				soybodiesBody* _tmp74_ = NULL;
				GeeHashMap* _tmp75_ = NULL;
				GeeHashMap* _tmp76_ = NULL;
				GeeHashMap* _tmp77_ = NULL;
				gboolean _tmp78_ = FALSE;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp74_ = other;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp75_ = soy_bodies_body_get_tags (_tmp74_);
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp76_ = _tmp75_;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp77_ = _tmp76_;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp78_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp77_, "cpz");
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp60_ = _tmp78_;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_g_object_unref0 (_tmp77_);
#line 497 "Wind.c"
			} else {
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp60_ = FALSE;
#line 501 "Wind.c"
			}
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			_tmp79_ = _tmp60_;
#line 47 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
			if (_tmp79_) {
#line 507 "Wind.c"
				soybodiesBody* _tmp80_ = NULL;
				gfloat _tmp81_ = 0.0F;
				gfloat _tmp82_ = 0.0F;
				gfloat _tmp83_ = 0.0F;
				gfloat _tmp84_ = 0.0F;
				gfloat _tmp85_ = 0.0F;
				gfloat _tmp86_ = 0.0F;
#line 48 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp80_ = other;
#line 48 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp81_ = r;
#line 48 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp82_ = dx;
#line 48 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp83_ = r;
#line 48 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp84_ = dy;
#line 48 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp85_ = r;
#line 48 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				_tmp86_ = dz;
#line 48 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
				soy_bodies_body_addForce (_tmp80_, (dReal) (_tmp81_ * _tmp82_), (dReal) (_tmp83_ * _tmp84_), (dReal) (_tmp85_ * _tmp86_));
#line 531 "Wind.c"
			}
		}
	}
#line 49 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
	result = TRUE;
#line 49 "/home/jeff/Documents/libraries/libsoy/src/fields/Wind.gs"
	return result;
#line 539 "Wind.c"
}
Beispiel #8
0
gboolean soy_atoms_vector_cmp_eq (GObject* left, GObject* right) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	GObject* _tmp1_;
	gboolean _tmp3_;
	GObject* _tmp4_;
	gfloat _tmp5_;
	gfloat _tmp6_;
	GObject* _tmp7_;
	gfloat _tmp8_;
	gfloat _tmp9_;
	gboolean _x;
	GObject* _tmp10_;
	gfloat _tmp11_;
	gfloat _tmp12_;
	GObject* _tmp13_;
	gfloat _tmp14_;
	gfloat _tmp15_;
	gboolean _y;
	GObject* _tmp16_;
	gfloat _tmp17_;
	gfloat _tmp18_;
	GObject* _tmp19_;
	gfloat _tmp20_;
	gfloat _tmp21_;
	gboolean _z;
	gboolean _tmp22_;
	gboolean _tmp23_;
	gboolean _tmp24_;
	g_return_val_if_fail (left != NULL, FALSE);
	g_return_val_if_fail (right != NULL, FALSE);
	_tmp1_ = left;
	if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, SOY_ATOMS_TYPE_VECTOR)) {
		_tmp0_ = TRUE;
	} else {
		GObject* _tmp2_;
		_tmp2_ = right;
		_tmp0_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, SOY_ATOMS_TYPE_VECTOR);
	}
	_tmp3_ = _tmp0_;
	if (_tmp3_) {
		result = FALSE;
		return result;
	}
	_tmp4_ = left;
	_tmp5_ = soy_atoms_vector_get_x (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, SOY_ATOMS_TYPE_VECTOR, soyatomsVector));
	_tmp6_ = _tmp5_;
	_tmp7_ = right;
	_tmp8_ = soy_atoms_vector_get_x (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, SOY_ATOMS_TYPE_VECTOR, soyatomsVector));
	_tmp9_ = _tmp8_;
	_x = _tmp6_ == _tmp9_;
	_tmp10_ = left;
	_tmp11_ = soy_atoms_vector_get_y (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, SOY_ATOMS_TYPE_VECTOR, soyatomsVector));
	_tmp12_ = _tmp11_;
	_tmp13_ = right;
	_tmp14_ = soy_atoms_vector_get_y (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, SOY_ATOMS_TYPE_VECTOR, soyatomsVector));
	_tmp15_ = _tmp14_;
	_y = _tmp12_ == _tmp15_;
	_tmp16_ = left;
	_tmp17_ = soy_atoms_vector_get_z (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, SOY_ATOMS_TYPE_VECTOR, soyatomsVector));
	_tmp18_ = _tmp17_;
	_tmp19_ = right;
	_tmp20_ = soy_atoms_vector_get_z (G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, SOY_ATOMS_TYPE_VECTOR, soyatomsVector));
	_tmp21_ = _tmp20_;
	_z = _tmp18_ == _tmp21_;
	_tmp22_ = _x;
	_tmp23_ = _y;
	_tmp24_ = _z;
	result = (_tmp22_ & _tmp23_) & _tmp24_;
	return result;
}
Beispiel #9
0
soyatomsVector* soy_atoms_vector_cross (soyatomsVector* self, soyatomsVector* other) {
	soyatomsVector* result = NULL;
	gfloat _tmp0_;
	gfloat _tmp1_;
	soyatomsVector* _tmp2_;
	gfloat _tmp3_;
	gfloat _tmp4_;
	gfloat _tmp5_;
	gfloat _tmp6_;
	soyatomsVector* _tmp7_;
	gfloat _tmp8_;
	gfloat _tmp9_;
	gfloat _tmp10_;
	gfloat _tmp11_;
	soyatomsVector* _tmp12_;
	gfloat _tmp13_;
	gfloat _tmp14_;
	gfloat _tmp15_;
	gfloat _tmp16_;
	soyatomsVector* _tmp17_;
	gfloat _tmp18_;
	gfloat _tmp19_;
	gfloat _tmp20_;
	gfloat _tmp21_;
	soyatomsVector* _tmp22_;
	gfloat _tmp23_;
	gfloat _tmp24_;
	gfloat _tmp25_;
	gfloat _tmp26_;
	soyatomsVector* _tmp27_;
	gfloat _tmp28_;
	gfloat _tmp29_;
	soyatomsVector* _tmp30_;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (other != NULL, NULL);
	_tmp0_ = soy_atoms_vector_get_y (self);
	_tmp1_ = _tmp0_;
	_tmp2_ = other;
	_tmp3_ = soy_atoms_vector_get_z (_tmp2_);
	_tmp4_ = _tmp3_;
	_tmp5_ = soy_atoms_vector_get_z (self);
	_tmp6_ = _tmp5_;
	_tmp7_ = other;
	_tmp8_ = soy_atoms_vector_get_y (_tmp7_);
	_tmp9_ = _tmp8_;
	_tmp10_ = soy_atoms_vector_get_z (self);
	_tmp11_ = _tmp10_;
	_tmp12_ = other;
	_tmp13_ = soy_atoms_vector_get_x (_tmp12_);
	_tmp14_ = _tmp13_;
	_tmp15_ = soy_atoms_vector_get_x (self);
	_tmp16_ = _tmp15_;
	_tmp17_ = other;
	_tmp18_ = soy_atoms_vector_get_z (_tmp17_);
	_tmp19_ = _tmp18_;
	_tmp20_ = soy_atoms_vector_get_x (self);
	_tmp21_ = _tmp20_;
	_tmp22_ = other;
	_tmp23_ = soy_atoms_vector_get_y (_tmp22_);
	_tmp24_ = _tmp23_;
	_tmp25_ = soy_atoms_vector_get_y (self);
	_tmp26_ = _tmp25_;
	_tmp27_ = other;
	_tmp28_ = soy_atoms_vector_get_x (_tmp27_);
	_tmp29_ = _tmp28_;
	_tmp30_ = soy_atoms_vector_new ((_tmp1_ * _tmp4_) - (_tmp6_ * _tmp9_), (_tmp11_ * _tmp14_) - (_tmp16_ * _tmp19_), (_tmp21_ * _tmp24_) - (_tmp26_ * _tmp29_));
	result = _tmp30_;
	return result;
}
Beispiel #10
0
static void _soy_textures_bumpmap_texel_set (soytexturesBumpmap* self, soyatomsVector* vector) {
	g_return_if_fail (self != NULL);
	g_return_if_fail (vector != NULL);
	{
		GeeHashMap* _tmp0_;
		GeeSet* _tmp1_;
		GeeSet* _tmp2_;
		GeeSet* _tmp3_;
		GeeIterator* _tmp4_ = NULL;
		GeeIterator* _tmp5_;
		GeeIterator* _index_it;
		_tmp0_ = self->priv->_texel_objs;
		_tmp1_ = gee_abstract_map_get_keys ((GeeMap*) _tmp0_);
		_tmp2_ = _tmp1_;
		_tmp3_ = _tmp2_;
		_tmp4_ = gee_iterable_iterator ((GeeIterable*) _tmp3_);
		_tmp5_ = _tmp4_;
		_g_object_unref0 (_tmp3_);
		_index_it = _tmp5_;
		while (TRUE) {
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			gint index;
			GeeHashMap* _tmp10_;
			gint _tmp11_;
			gpointer _tmp12_ = NULL;
			soyatomsVector* _tmp13_;
			_tmp6_ = _index_it;
			_tmp7_ = gee_iterator_next (_tmp6_);
			if (!_tmp7_) {
				break;
			}
			_tmp8_ = _index_it;
			_tmp9_ = gee_iterator_get (_tmp8_);
			index = (gint) ((gintptr) _tmp9_);
			_tmp10_ = self->priv->_texel_objs;
			_tmp11_ = index;
			_tmp12_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp10_, (gpointer) ((gintptr) _tmp11_));
			_tmp13_ = vector;
			if (((soyatomsVector*) _tmp12_) == _tmp13_) {
				guchar* _tmp14_;
				gint _tmp15_;
				soyatomsVector* _tmp16_;
				gfloat _tmp17_;
				gfloat _tmp18_;
				guchar _tmp19_;
				guchar* _tmp20_;
				gint _tmp21_;
				soyatomsVector* _tmp22_;
				gfloat _tmp23_;
				gfloat _tmp24_;
				guchar _tmp25_;
				guchar* _tmp26_;
				gint _tmp27_;
				soyatomsVector* _tmp28_;
				gfloat _tmp29_;
				gfloat _tmp30_;
				guchar _tmp31_;
				_tmp14_ = ((soytexturesTexture*) self)->texels;
				_tmp15_ = index;
				_tmp16_ = vector;
				_tmp17_ = soy_atoms_vector_get_x (_tmp16_);
				_tmp18_ = _tmp17_;
				_tmp14_[_tmp15_ * 3] = (guchar) ((gchar) (_tmp18_ * 128.0f));
				_tmp19_ = _tmp14_[_tmp15_ * 3];
				_tmp20_ = ((soytexturesTexture*) self)->texels;
				_tmp21_ = index;
				_tmp22_ = vector;
				_tmp23_ = soy_atoms_vector_get_y (_tmp22_);
				_tmp24_ = _tmp23_;
				_tmp20_[(_tmp21_ * 3) + 1] = (guchar) ((gchar) (_tmp24_ * 128.0f));
				_tmp25_ = _tmp20_[(_tmp21_ * 3) + 1];
				_tmp26_ = ((soytexturesTexture*) self)->texels;
				_tmp27_ = index;
				_tmp28_ = vector;
				_tmp29_ = soy_atoms_vector_get_z (_tmp28_);
				_tmp30_ = _tmp29_;
				_tmp26_[(_tmp27_ * 3) + 2] = (guchar) ((gchar) (_tmp30_ * 128.0f));
				_tmp31_ = _tmp26_[(_tmp27_ * 3) + 2];
			}
		}
		_g_object_unref0 (_index_it);
	}
	g_mutex_lock (&self->priv->_mutex);
	((soytexturesTexture*) self)->updated = TRUE;
	g_mutex_unlock (&self->priv->_mutex);
}
Beispiel #11
0
void soy_textures_bumpmap_set (soytexturesBumpmap* self, gint index, GObject* value) {
	soyatomsVector* vector = NULL;
	GObject* _tmp0_;
	GObject* _tmp1_;
	soyatomsVector* _tmp2_;
	soyatomsVector* _tmp3_;
	gfloat _tmp4_;
	gfloat _tmp5_;
	soyatomsVector* _tmp11_;
	gfloat _tmp12_;
	gfloat _tmp13_;
	soyatomsVector* _tmp19_;
	gfloat _tmp20_;
	gfloat _tmp21_;
	GeeHashMap* _tmp27_;
	gint _tmp28_;
	gboolean _tmp29_ = FALSE;
	GeeHashMap* _tmp37_;
	gint _tmp38_;
	soyatomsVector* _tmp39_;
	soyatomsVector* _tmp40_;
	soyatomsVector* _tmp41_;
	guchar* _tmp42_;
	gint _tmp43_;
	soyatomsVector* _tmp44_;
	gfloat _tmp45_;
	gfloat _tmp46_;
	guchar _tmp47_;
	guchar* _tmp48_;
	gint _tmp49_;
	soyatomsVector* _tmp50_;
	gfloat _tmp51_;
	gfloat _tmp52_;
	guchar _tmp53_;
	guchar* _tmp54_;
	gint _tmp55_;
	soyatomsVector* _tmp56_;
	gfloat _tmp57_;
	gfloat _tmp58_;
	guchar _tmp59_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (value != NULL);
	_tmp0_ = value;
	if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, SOY_ATOMS_TYPE_VECTOR)) {
		_g_object_unref0 (vector);
		return;
	}
	_tmp1_ = value;
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SOY_ATOMS_TYPE_VECTOR, soyatomsVector));
	_g_object_unref0 (vector);
	vector = _tmp2_;
	_tmp3_ = vector;
	_tmp4_ = soy_atoms_vector_get_x (_tmp3_);
	_tmp5_ = _tmp4_;
	if (_tmp5_ > 1.0f) {
		soyatomsVector* _tmp6_;
		_tmp6_ = vector;
		soy_atoms_vector_set_x (_tmp6_, 1.0f);
	} else {
		soyatomsVector* _tmp7_;
		gfloat _tmp8_;
		gfloat _tmp9_;
		_tmp7_ = vector;
		_tmp8_ = soy_atoms_vector_get_x (_tmp7_);
		_tmp9_ = _tmp8_;
		if (_tmp9_ < (-1.0f)) {
			soyatomsVector* _tmp10_;
			_tmp10_ = vector;
			soy_atoms_vector_set_x (_tmp10_, -1.0f);
		}
	}
	_tmp11_ = vector;
	_tmp12_ = soy_atoms_vector_get_y (_tmp11_);
	_tmp13_ = _tmp12_;
	if (_tmp13_ > 1.0f) {
		soyatomsVector* _tmp14_;
		_tmp14_ = vector;
		soy_atoms_vector_set_y (_tmp14_, 1.0f);
	} else {
		soyatomsVector* _tmp15_;
		gfloat _tmp16_;
		gfloat _tmp17_;
		_tmp15_ = vector;
		_tmp16_ = soy_atoms_vector_get_y (_tmp15_);
		_tmp17_ = _tmp16_;
		if (_tmp17_ < (-1.0f)) {
			soyatomsVector* _tmp18_;
			_tmp18_ = vector;
			soy_atoms_vector_set_y (_tmp18_, -1.0f);
		}
	}
	_tmp19_ = vector;
	_tmp20_ = soy_atoms_vector_get_z (_tmp19_);
	_tmp21_ = _tmp20_;
	if (_tmp21_ > 1.0f) {
		soyatomsVector* _tmp22_;
		_tmp22_ = vector;
		soy_atoms_vector_set_z (_tmp22_, 1.0f);
	} else {
		soyatomsVector* _tmp23_;
		gfloat _tmp24_;
		gfloat _tmp25_;
		_tmp23_ = vector;
		_tmp24_ = soy_atoms_vector_get_z (_tmp23_);
		_tmp25_ = _tmp24_;
		if (_tmp25_ < (-1.0f)) {
			soyatomsVector* _tmp26_;
			_tmp26_ = vector;
			soy_atoms_vector_set_z (_tmp26_, -1.0f);
		}
	}
	_tmp27_ = self->priv->_texel_objs;
	_tmp28_ = index;
	_tmp29_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp27_, (gpointer) ((gintptr) _tmp28_));
	if (_tmp29_) {
		GeeHashMap* _tmp30_;
		gint _tmp31_;
		gpointer _tmp32_ = NULL;
		soyatomsVector* _tmp33_;
		soyatomsVector* old;
		soyatomsVector* _tmp34_;
		guint _tmp35_ = 0U;
		soyatomsVector* _tmp36_;
		_tmp30_ = self->priv->_texel_objs;
		_tmp31_ = index;
		_tmp32_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp30_, (gpointer) ((gintptr) _tmp31_));
		_tmp33_ = _g_object_ref0 ((soyatomsVector*) _tmp32_);
		old = _tmp33_;
		_tmp34_ = old;
		g_signal_parse_name ("on-set", SOY_ATOMS_TYPE_VECTOR, &_tmp35_, NULL, FALSE);
		g_signal_handlers_disconnect_matched (_tmp34_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp35_, 0, NULL, (GCallback) __soy_textures_bumpmap_texel_set_soy_atoms_vector_on_set, self);
		_tmp36_ = old;
		g_object_weak_unref ((GObject*) _tmp36_, __soy_textures_bumpmap_texel_weak_gweak_notify, self);
		_g_object_unref0 (old);
	}
	_tmp37_ = self->priv->_texel_objs;
	_tmp38_ = index;
	_tmp39_ = vector;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp37_, (gpointer) ((gintptr) _tmp38_), _tmp39_);
	_tmp40_ = vector;
	g_signal_connect_object (_tmp40_, "on-set", (GCallback) __soy_textures_bumpmap_texel_set_soy_atoms_vector_on_set, self, 0);
	_tmp41_ = vector;
	g_object_weak_ref ((GObject*) _tmp41_, __soy_textures_bumpmap_texel_weak_gweak_notify, self);
	_tmp42_ = ((soytexturesTexture*) self)->texels;
	_tmp43_ = index;
	_tmp44_ = vector;
	_tmp45_ = soy_atoms_vector_get_x (_tmp44_);
	_tmp46_ = _tmp45_;
	_tmp42_[_tmp43_ * 3] = (guchar) ((gchar) (_tmp46_ * 128.0f));
	_tmp47_ = _tmp42_[_tmp43_ * 3];
	_tmp48_ = ((soytexturesTexture*) self)->texels;
	_tmp49_ = index;
	_tmp50_ = vector;
	_tmp51_ = soy_atoms_vector_get_y (_tmp50_);
	_tmp52_ = _tmp51_;
	_tmp48_[(_tmp49_ * 3) + 1] = (guchar) ((gchar) (_tmp52_ * 128.0f));
	_tmp53_ = _tmp48_[(_tmp49_ * 3) + 1];
	_tmp54_ = ((soytexturesTexture*) self)->texels;
	_tmp55_ = index;
	_tmp56_ = vector;
	_tmp57_ = soy_atoms_vector_get_z (_tmp56_);
	_tmp58_ = _tmp57_;
	_tmp54_[(_tmp55_ * 3) + 2] = (guchar) ((gchar) (_tmp58_ * 128.0f));
	_tmp59_ = _tmp54_[(_tmp55_ * 3) + 2];
	g_mutex_lock (&self->priv->_mutex);
	((soytexturesTexture*) self)->updated = TRUE;
	g_mutex_unlock (&self->priv->_mutex);
	_g_object_unref0 (vector);
}