MeshLib C# Docs
Loading...
Searching...
No Matches
MR.Const_Box_UnsignedShort Class Reference

Box given by its min- and max- corners Generated from class MR.Box<unsigned short>. Derived classes: Direct: (non-virtual) MR.SimpleVolumeMinMaxU16 This is the const half of the class. More...

+ Inheritance diagram for MR.Const_Box_UnsignedShort:

Classes

struct  _Underlying
 

Public Member Functions

virtual void Dispose ()
 
unsafe Const_Box_UnsignedShort ()
 Constructs an empty (default-constructed) instance.
 
unsafe Const_Box_UnsignedShort (MR.Const_Box_UnsignedShort _other)
 Generated from constructor MR.Box<unsigned short>::Box.
 
unsafe Const_Box_UnsignedShort (ushort min, ushort max)
 Generated from constructor MR.Box<unsigned short>::Box.
 
unsafe Const_Box_UnsignedShort (MR.Const_NoInit _1)
 Generated from constructor MR.Box<unsigned short>::Box.
 
unsafe bool valid ()
 true if the box contains at least one point Generated from method MR.Box<unsigned short>::valid.
 
unsafe ushort center ()
 computes center of the box Generated from method MR.Box<unsigned short>::center.
 
unsafe ushort corner (bool c)
 returns the corner of this box as specified by given bool-vector: 0 element in (c) means take min's coordinate, 1 element in (c) means take max's coordinate Generated from method MR.Box<unsigned short>::corner.
 
unsafe ushort size ()
 computes size of the box in all dimensions Generated from method MR.Box<unsigned short>::size.
 
unsafe ushort diagonal ()
 computes length from min to max Generated from method MR.Box<unsigned short>::diagonal.
 
unsafe ushort volume ()
 computes the volume of this box Generated from method MR.Box<unsigned short>::volume.
 
unsafe bool contains (ushort pt)
 checks whether given point is inside (including the surface) of this box Generated from method MR.Box<unsigned short>::contains.
 
unsafe bool contains (MR.Const_Box_UnsignedShort otherbox)
 checks whether given box is fully inside (the surfaces may touch) of this box Generated from method MR.Box<unsigned short>::contains.
 
unsafe ushort getBoxClosestPointTo (ushort pt)
 returns closest point in the box to given point Generated from method MR.Box<unsigned short>::getBoxClosestPointTo.
 
unsafe bool intersects (MR.Const_Box_UnsignedShort b)
 checks whether this box intersects or touches given box Generated from method MR.Box<unsigned short>::intersects.
 
unsafe MR.Box_UnsignedShort intersection (MR.Const_Box_UnsignedShort b)
 computes intersection between this and other box Generated from method MR.Box<unsigned short>::intersection.
 
unsafe ushort getDistanceSq (MR.Const_Box_UnsignedShort b)
 returns squared distance between this box and given one; returns zero if the boxes touch or intersect Generated from method MR.Box<unsigned short>::getDistanceSq.
 
unsafe ushort getDistanceSq (ushort pt)
 returns squared distance between this box and given point; returns zero if the point is inside or on the boundary of the box Generated from method MR.Box<unsigned short>::getDistanceSq.
 
unsafe ushort getProjection (ushort pt)
 returns the closest point on the box to the given point for points outside the box this is equivalent to getBoxClosestPointTo Generated from method MR.Box<unsigned short>::getProjection.
 
unsafe MR.Box_UnsignedShort expanded (ushort expansion)
 decreases min and increased max on given value Generated from method MR.Box<unsigned short>::expanded.
 
unsafe MR.Box_UnsignedShort insignificantlyExpanded ()
 decreases min and increases max to their closest representable value Generated from method MR.Box<unsigned short>::insignificantlyExpanded.
 
bool Equals (MR.Const_Box_UnsignedShort? a)
 
override bool Equals (object? other)
 

Static Public Member Functions

static unsafe MR.Box_UnsignedShort fromMinAndSize (ushort min, ushort size)
 Generated from method MR.Box<unsigned short>::fromMinAndSize.
 
static unsafe bool getMinBoxCorner (ushort n)
 considering all planes with given normal and arbitrary shift: dot(n,x) = d finds the box's corner for which d is minimal Generated from method MR.Box<unsigned short>::getMinBoxCorner.
 
static unsafe bool getMaxBoxCorner (ushort n)
 considering all planes with given normal and arbitrary shift: dot(n,x) = d finds the box's corner for which d is maximal Generated from method MR.Box<unsigned short>::getMaxBoxCorner.
 
static unsafe bool operator== (MR.Const_Box_UnsignedShort _this, MR.Const_Box_UnsignedShort a)
 Generated from method MR.Box<unsigned short>::operator==.
 
static unsafe bool operator!= (MR.Const_Box_UnsignedShort _this, MR.Const_Box_UnsignedShort a)
 

Protected Member Functions

virtual unsafe void Dispose (bool disposing)
 

Properties

static unsafe int Elements [get]
 
unsafe ushort min [get]
 
unsafe ushort max [get]
 
unsafe ushort this[int e] [get]
 min/max access by 0/1 index Generated from method MR.Box<unsigned short>::operator[].
 
- Properties inherited from MR.Misc.Object< Const_Box_UnsignedShort >
virtual bool _IsOwning [get]
 Returns true if this is an owning instance, and when disposed, will destroy the underlying C++ instance. If false, we assume that the underlying C++ instance will live long enough.
 

Additional Inherited Members

- Protected Attributes inherited from MR.Misc.Object< Const_Box_UnsignedShort >
bool _IsOwningVal
 

Detailed Description

Box given by its min- and max- corners Generated from class MR.Box<unsigned short>. Derived classes: Direct: (non-virtual) MR.SimpleVolumeMinMaxU16 This is the const half of the class.


The documentation for this class was generated from the following file: