i = (int)(*x/0.4f); *x = 0.4f * i; }  if (m_nSnap & LC_DRAW_SNAP_Y) { i = (int)(*y/0.4f); *y = 0.4f * i; }  if (m_nSnap & LC_DRAW_SNAP_Z) { i = (int)(*z/0.32f); *z = 0.32f * i; } }
Vector3 Pt(point[0], point[1], point[2]); Vector3 Rem; if (reminder) Rem = Vector3(reminder[0], reminder[1], reminder[2]); SnapVector(Pt, Rem); point[0] = Pt[0]; point[1] = Pt[1]; point[2] = Pt[2]; if (reminder) { reminder[0] = Rem[0]; reminder[1] = Rem[1]; reminder[2] = Rem[2]; } };
void Project::SnapPoint(float *x, float *y, float *z){	int i;	if (m_nSnap & LC_DRAW_SNAP_X)	{		i = (int)(*x/0.4f);		*x = 0.4f * i;	}	if (m_nSnap & LC_DRAW_SNAP_Y)	{		i = (int)(*y/0.4f);		*y = 0.4f * i;	}	if (m_nSnap & LC_DRAW_SNAP_Z)	{		i = (int)(*z/0.32f);		*z = 0.32f * i;	}}