MeshLib C# Docs
Loading...
Searching...
No Matches

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.
 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)

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)

Protected Attributes

unsafe ushort * __ref_storage_min
unsafe ushort * __ref_storage_max

Static Protected Attributes

static unsafe int * __ref_storage_Elements

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[].

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.

Constructor & Destructor Documentation

◆ Const_Box_UnsignedShort() [1/5]

unsafe MR.Const_Box_UnsignedShort.Const_Box_UnsignedShort ( )
inline

Constructs an empty (default-constructed) instance.

◆ Const_Box_UnsignedShort() [2/5]

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

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

◆ Const_Box_UnsignedShort() [3/5]

MR.Const_Box_UnsignedShort.Const_Box_UnsignedShort ( Box_UnsignedShort _other)
inline

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

◆ Const_Box_UnsignedShort() [4/5]

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

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

◆ Const_Box_UnsignedShort() [5/5]

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

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

Member Function Documentation

◆ center()

unsafe ushort MR.Const_Box_UnsignedShort.center ( )
inline

computes center of the box Generated from method MR::Box<unsigned short>center.

◆ contains() [1/2]

unsafe bool MR.Const_Box_UnsignedShort.contains ( MR.Const_Box_UnsignedShort otherbox)
inline

checks whether given box is fully inside (the surfaces may touch) of this box Generated from method MR::Box<unsigned short>contains.

◆ contains() [2/2]

unsafe bool MR.Const_Box_UnsignedShort.contains ( ushort pt)
inline

checks whether given point is inside (including the surface) of this box Generated from method MR::Box<unsigned short>contains.

◆ corner()

unsafe ushort MR.Const_Box_UnsignedShort.corner ( bool c)
inline

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.

◆ diagonal()

unsafe ushort MR.Const_Box_UnsignedShort.diagonal ( )
inline

computes length from min to max Generated from method MR::Box<unsigned short>diagonal.

◆ Dispose() [1/2]

virtual void MR.Const_Box_UnsignedShort.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

virtual unsafe void MR.Const_Box_UnsignedShort.Dispose ( bool disposing)
inlineprotectedvirtual

◆ Equals() [1/2]

bool MR.Const_Box_UnsignedShort.Equals ( MR.Const_Box_UnsignedShort? a)
inline

◆ Equals() [2/2]

override bool MR.Const_Box_UnsignedShort.Equals ( object? other)
inline

◆ expanded()

unsafe MR.Box_UnsignedShort MR.Const_Box_UnsignedShort.expanded ( ushort expansion)
inline

decreases min and increased max on given value Generated from method MR::Box<unsigned short>expanded.

◆ fromMinAndSize()

unsafe MR.Box_UnsignedShort MR.Const_Box_UnsignedShort.fromMinAndSize ( ushort min,
ushort size )
inlinestatic

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

◆ getBoxClosestPointTo()

unsafe ushort MR.Const_Box_UnsignedShort.getBoxClosestPointTo ( ushort pt)
inline

returns closest point in the box to given point Generated from method MR::Box<unsigned short>getBoxClosestPointTo.

◆ getDistanceSq() [1/2]

unsafe ushort MR.Const_Box_UnsignedShort.getDistanceSq ( MR.Const_Box_UnsignedShort b)
inline

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.

◆ getDistanceSq() [2/2]

unsafe ushort MR.Const_Box_UnsignedShort.getDistanceSq ( ushort pt)
inline

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.

◆ getMaxBoxCorner()

unsafe bool MR.Const_Box_UnsignedShort.getMaxBoxCorner ( ushort n)
inlinestatic

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.

◆ getMinBoxCorner()

unsafe bool MR.Const_Box_UnsignedShort.getMinBoxCorner ( ushort n)
inlinestatic

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.

◆ getProjection()

unsafe ushort MR.Const_Box_UnsignedShort.getProjection ( ushort pt)
inline

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.

◆ insignificantlyExpanded()

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

decreases min and increases max to their closest representable value Generated from method MR::Box<unsigned short>insignificantlyExpanded.

◆ intersection()

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

computes intersection between this and other box Generated from method MR::Box<unsigned short>intersection.

◆ intersects()

unsafe bool MR.Const_Box_UnsignedShort.intersects ( MR.Const_Box_UnsignedShort b)
inline

checks whether this box intersects or touches given box Generated from method MR::Box<unsigned short>intersects.

◆ operator!=()

unsafe bool MR.Const_Box_UnsignedShort.operator!= ( MR.Const_Box_UnsignedShort _this,
MR.Const_Box_UnsignedShort a )
inlinestatic

◆ operator==()

unsafe bool MR.Const_Box_UnsignedShort.operator== ( MR.Const_Box_UnsignedShort _this,
MR.Const_Box_UnsignedShort a )
inlinestatic

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

◆ size()

unsafe ushort MR.Const_Box_UnsignedShort.size ( )
inline

computes size of the box in all dimensions Generated from method MR::Box<unsigned short>size.

◆ valid()

unsafe bool MR.Const_Box_UnsignedShort.valid ( )
inline

true if the box contains at least one point Generated from method MR::Box<unsigned short>valid.

◆ volume()

unsafe ushort MR.Const_Box_UnsignedShort.volume ( )
inline

computes the volume of this box Generated from method MR::Box<unsigned short>volume.

Member Data Documentation

◆ __ref_storage_Elements

unsafe int* MR.Const_Box_UnsignedShort.__ref_storage_Elements
staticprotected

◆ __ref_storage_max

unsafe ushort* MR.Const_Box_UnsignedShort.__ref_storage_max
protected

◆ __ref_storage_min

unsafe ushort* MR.Const_Box_UnsignedShort.__ref_storage_min
protected

Property Documentation

◆ Elements

unsafe int MR.Const_Box_UnsignedShort.Elements
staticget

◆ max

unsafe ushort MR.Const_Box_UnsignedShort.max
get

◆ min

unsafe ushort MR.Const_Box_UnsignedShort.min
get

◆ this[int e]

unsafe ushort MR.Const_Box_UnsignedShort.this[int e]
get

min/max access by 0/1 index Generated from method MR::Box<unsigned short>::operator[].


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