bool Object::IsNearPoint(double X, double Y, double Z, double R) const
{
	return (sqrt((abs(GetGamePos(Axis_X) - X) * abs(GetGamePos(Axis_X) - X)) + (abs(GetGamePos(Axis_Y) - Y) * abs(GetGamePos(Axis_Y) - Y)) + (abs(GetGamePos(Axis_Z) - Z) * abs(GetGamePos(Axis_Z) - Z))) <= R);
}
bool Object::IsCoordinateInRange(unsigned char axis, double pos, double R) const
{
	return (GetGamePos(axis) > (pos - R) && GetGamePos(axis) < (pos + R));
}
Exemple #3
0
VaultVector Object::vvec() const
{
	return VaultVector(GetGamePos(Axis_X), GetGamePos(Axis_Y), GetGamePos(Axis_Z));
}