MeshLib C# Docs
Loading...
Searching...
No Matches
MR.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 non-const half of the class. More...

Inheritance diagram for MR.Box_UnsignedShort:

Public Member Functions

unsafe Box_UnsignedShort ()
 Constructs an empty (default-constructed) instance.
unsafe Box_UnsignedShort (MR.Const_Box_UnsignedShort _other)
 Generated from constructor MR::Box<unsigned short>::Box.
 Box_UnsignedShort (Box_UnsignedShort _other)
 Generated from constructor MR::Box<unsigned short>::Box.
unsafe Box_UnsignedShort (ushort min, ushort max)
 Generated from constructor MR::Box<unsigned short>::Box.
unsafe Box_UnsignedShort (MR.Const_NoInit _1)
 Generated from constructor MR::Box<unsigned short>::Box.
unsafe MR.Box_UnsignedShort assign (MR.Const_Box_UnsignedShort _other)
 Generated from method MR::Box<unsigned short>::operator=.
unsafe void include (ushort pt)
 minimally increases the box to include given point Generated from method MR::Box<unsigned short>include.
unsafe void include (MR.Const_Box_UnsignedShort b)
 minimally increases the box to include another box Generated from method MR::Box<unsigned short>include.
unsafe MR.Box_UnsignedShort intersect (MR.Const_Box_UnsignedShort b)
 Generated from method MR::Box<unsigned short>intersect.
Public Member Functions inherited from MR.Const_Box_UnsignedShort
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.
 Const_Box_UnsignedShort (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)

Properties

new unsafe ref ushort min [get]
new unsafe ref ushort max [get]
unsafe new ref ushort this[int e] [get]
 Generated from method MR::Box<unsigned short>::operator[].
Properties inherited from MR.Const_Box_UnsignedShort
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[].

Additional Inherited Members

Static Public Member Functions inherited from MR.Const_Box_UnsignedShort
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 inherited from MR.Const_Box_UnsignedShort
virtual unsafe void Dispose (bool disposing)
Protected Attributes inherited from MR.Const_Box_UnsignedShort
unsafe ushort * __ref_storage_min
unsafe ushort * __ref_storage_max
Static Protected Attributes inherited from MR.Const_Box_UnsignedShort
static unsafe int * __ref_storage_Elements

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 non-const half of the class.

Constructor & Destructor Documentation

◆ Box_UnsignedShort() [1/5]

unsafe MR.Box_UnsignedShort.Box_UnsignedShort ( )
inline

Constructs an empty (default-constructed) instance.

◆ Box_UnsignedShort() [2/5]

unsafe MR.Box_UnsignedShort.Box_UnsignedShort ( MR.Const_Box_UnsignedShort _other)
inline

Generated from constructor MR::Box<unsigned short>::Box.

◆ Box_UnsignedShort() [3/5]

MR.Box_UnsignedShort.Box_UnsignedShort ( Box_UnsignedShort _other)
inline

Generated from constructor MR::Box<unsigned short>::Box.

◆ Box_UnsignedShort() [4/5]

unsafe MR.Box_UnsignedShort.Box_UnsignedShort ( ushort min,
ushort max )
inline

Generated from constructor MR::Box<unsigned short>::Box.

◆ Box_UnsignedShort() [5/5]

unsafe MR.Box_UnsignedShort.Box_UnsignedShort ( MR.Const_NoInit _1)
inline

Generated from constructor MR::Box<unsigned short>::Box.

Member Function Documentation

◆ assign()

unsafe MR.Box_UnsignedShort MR.Box_UnsignedShort.assign ( MR.Const_Box_UnsignedShort _other)
inline

Generated from method MR::Box<unsigned short>::operator=.

◆ include() [1/2]

unsafe void MR.Box_UnsignedShort.include ( MR.Const_Box_UnsignedShort b)
inline

minimally increases the box to include another box Generated from method MR::Box<unsigned short>include.

◆ include() [2/2]

unsafe void MR.Box_UnsignedShort.include ( ushort pt)
inline

minimally increases the box to include given point Generated from method MR::Box<unsigned short>include.

◆ intersect()

unsafe MR.Box_UnsignedShort MR.Box_UnsignedShort.intersect ( MR.Const_Box_UnsignedShort b)
inline

Generated from method MR::Box<unsigned short>intersect.

Property Documentation

◆ max

new unsafe ref ushort MR.Box_UnsignedShort.max
get

◆ min

new unsafe ref ushort MR.Box_UnsignedShort.min
get

◆ this[int e]

unsafe new ref ushort MR.Box_UnsignedShort.this[int e]
get

Generated from method MR::Box<unsigned short>::operator[].


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