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

Box given by its min- and max- corners Generated from class MR.Box3i. This is the const reference to the struct. More...

+ Inheritance diagram for MR.ConstBox_Box3i:

Classes

struct  _Underlying
 

Public Member Functions

unsafe ConstBox_Box3i (Box3i other)
 Make a copy of a struct. (Even though we initially pass is_owning: false, we then use the copy constructor to produce an owning instance.)
 
virtual void Dispose ()
 
unsafe ConstBox_Box3i (ConstBox_Box3i _other)
 Generated copy constructor.
 
unsafe ConstBox_Box3i ()
 Constructs an empty (default-constructed) instance.
 
unsafe ConstBox_Box3i (in MR.Vector3i min, in MR.Vector3i max)
 Generated from constructor MR.Box3i.Box3i.
 
unsafe ConstBox_Box3i (MR.Const_NoInit _1)
 Generated from constructor MR.Box3i.Box3i.
 
unsafe bool valid ()
 true if the box contains at least one point Generated from method MR.Box3i.valid.
 
unsafe MR.Vector3i center ()
 computes center of the box Generated from method MR.Box3i.center.
 
unsafe MR.Vector3i corner (in MR.Vector3b 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.Box3i.corner.
 
unsafe MR.Vector3i size ()
 computes size of the box in all dimensions Generated from method MR.Box3i.size.
 
unsafe int diagonal ()
 computes length from min to max Generated from method MR.Box3i.diagonal.
 
unsafe int volume ()
 computes the volume of this box Generated from method MR.Box3i.volume.
 
unsafe bool contains (in MR.Vector3i pt)
 checks whether given point is inside (including the surface) of this box Generated from method MR.Box3i.contains.
 
unsafe bool contains (in MR.Box3i otherbox)
 checks whether given box is fully inside (the surfaces may touch) of this box Generated from method MR.Box3i.contains.
 
unsafe MR.Vector3i getBoxClosestPointTo (in MR.Vector3i pt)
 returns closest point in the box to given point Generated from method MR.Box3i.getBoxClosestPointTo.
 
unsafe bool intersects (in MR.Box3i b)
 checks whether this box intersects or touches given box Generated from method MR.Box3i.intersects.
 
unsafe MR.Box3i intersection (in MR.Box3i b)
 computes intersection between this and other box Generated from method MR.Box3i.intersection.
 
unsafe int getDistanceSq (in MR.Box3i b)
 returns squared distance between this box and given one; returns zero if the boxes touch or intersect Generated from method MR.Box3i.getDistanceSq.
 
unsafe int getDistanceSq (in MR.Vector3i 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.Box3i.getDistanceSq.
 
unsafe MR.Vector3i getProjection (in MR.Vector3i 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.Box3i.getProjection.
 
unsafe MR.Box3i expanded (in MR.Vector3i expansion)
 decreases min and increased max on given value Generated from method MR.Box3i.expanded.
 
unsafe MR.Box3i insignificantlyExpanded ()
 decreases min and increases max to their closest representable value Generated from method MR.Box3i.insignificantlyExpanded.
 
bool Equals (MR.ConstBox_Box3i? a)
 
override bool Equals (object? other)
 

Static Public Member Functions

static implicit operator ConstBox_Box3i (Box3i other)
 Convert from a struct by copying it. Note that only ConstBox_Box3i has this conversion, Box_Box3i intentionally doesn't.
 
static unsafe MR.Box3i fromMinAndSize (in MR.Vector3i min, in MR.Vector3i size)
 Generated from method MR.Box3i.fromMinAndSize.
 
static unsafe MR.Vector3b getMinBoxCorner (in MR.Vector3i 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.Box3i.getMinBoxCorner.
 
static unsafe MR.Vector3b getMaxBoxCorner (in MR.Vector3i 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.Box3i.getMaxBoxCorner.
 
static unsafe bool operator== (MR.ConstBox_Box3i _this, MR.ConstBox_Box3i a)
 Generated from method MR.Box3i.operator==.
 
static unsafe bool operator!= (MR.ConstBox_Box3i _this, MR.ConstBox_Box3i a)
 

Protected Member Functions

virtual unsafe void Dispose (bool disposing)
 

Properties

unsafe ref readonly Box3i _Ref [get]
 Get the underlying struct.
 
ref readonly MR.Vector3i min [get]
 
ref readonly MR.Vector3i max [get]
 
static unsafe int Elements [get]
 
unsafe ref readonly MR.Vector3i this[int e] [get]
 min/max access by 0/1 index Generated from method MR.Box3i.operator[].
 
- Properties inherited from MR.Misc.Object< ConstBox_Box3i >
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< ConstBox_Box3i >
bool _IsOwningVal
 

Detailed Description

Box given by its min- and max- corners Generated from class MR.Box3i. This is the const reference to the struct.


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