OctreeBox.PointWithinBounds C# (CSharp) Метод

PointWithinBounds() публичный Метод

public PointWithinBounds ( float x, float y, float z ) : bool
x float
y float
z float
Результат bool
    public bool PointWithinBounds(float x, float y, float z)
    {
        return x <= Right &&
               x > Left &&
               y <= Front &&
               y > Back &&
               z <= Top &&
               z > Bottom;
    }

Usage Example

Пример #1
0
 protected internal OctreeNode GetChild(float x, float y, float z)
 {
     return(Bounds.PointWithinBounds(x, y, z)
                ? (Branch != null
                       ? (from t in Branch where t.Bounds.PointWithinBounds(x, y, z) select t.GetChild(x, y, z)).
                   FirstOrDefault()
                       : this)
                : null);
 }
All Usage Examples Of OctreeBox::PointWithinBounds