OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.InBoundingBox C# (CSharp) Method

InBoundingBox() private method

private InBoundingBox ( ScenePresence avatar, System.Vector3 point ) : bool
avatar OpenSim.Region.Framework.Scenes.ScenePresence
point System.Vector3
return bool
        private bool InBoundingBox(ScenePresence avatar, Vector3 point)
        {
            float height = avatar.Appearance.AvatarHeight;
            Vector3 b1 = avatar.AbsolutePosition + new Vector3(-0.22f, -0.22f, -height/2);
            Vector3 b2 = avatar.AbsolutePosition + new Vector3(0.22f, 0.22f, height/2);

            if (point.X > b1.X && point.X < b2.X &&
                point.Y > b1.Y && point.Y < b2.Y &&
                point.Z > b1.Z && point.Z < b2.Z)
                return true;
            return false;
        }
LSL_Api