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

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

+ Inheritance diagram for MR.ConstBox_Box2i:

Classes

struct  _Underlying
 

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

virtual unsafe void Dispose (bool disposing)
 

Static Protected Attributes

static unsafe int * __ref_storage_Elements
 

Properties

ref readonly MR.Vector2i min [get]
 
ref readonly MR.Vector2i max [get]
 
static unsafe int Elements [get]
 
unsafe ref readonly MR.Vector2i this[int e] [get]
 min/max access by 0/1 index Generated from method MR.Box2i.operator[].
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ConstBox_Box2i() [1/5]

unsafe MR.ConstBox_Box2i.ConstBox_Box2i ( Box2i other)
inline

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

◆ ConstBox_Box2i() [2/5]

unsafe MR.ConstBox_Box2i.ConstBox_Box2i ( ConstBox_Box2i _other)
inline

Generated copy constructor.

◆ ConstBox_Box2i() [3/5]

unsafe MR.ConstBox_Box2i.ConstBox_Box2i ( )
inline

Constructs an empty (default-constructed) instance.

◆ ConstBox_Box2i() [4/5]

unsafe MR.ConstBox_Box2i.ConstBox_Box2i ( in MR.Vector2i min,
in MR.Vector2i max )
inline

Generated from constructor MR.Box2i.Box2i.

◆ ConstBox_Box2i() [5/5]

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

Generated from constructor MR.Box2i.Box2i.

Member Function Documentation

◆ center()

unsafe MR.Vector2i MR.ConstBox_Box2i.center ( )
inline

computes center of the box Generated from method MR.Box2i.center.

◆ contains() [1/2]

unsafe bool MR.ConstBox_Box2i.contains ( in MR.Box2i otherbox)
inline

checks whether given box is fully inside (the surfaces may touch) of this box Generated from method MR.Box2i.contains.

◆ contains() [2/2]

unsafe bool MR.ConstBox_Box2i.contains ( in MR.Vector2i pt)
inline

checks whether given point is inside (including the surface) of this box Generated from method MR.Box2i.contains.

◆ corner()

unsafe MR.Vector2i MR.ConstBox_Box2i.corner ( in MR.Vector2b 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.Box2i.corner.

◆ diagonal()

unsafe int MR.ConstBox_Box2i.diagonal ( )
inline

computes length from min to max Generated from method MR.Box2i.diagonal.

◆ Dispose() [1/2]

virtual void MR.ConstBox_Box2i.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

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

◆ Equals() [1/2]

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

◆ Equals() [2/2]

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

◆ expanded()

unsafe MR.Box2i MR.ConstBox_Box2i.expanded ( in MR.Vector2i expansion)
inline

decreases min and increased max on given value Generated from method MR.Box2i.expanded.

◆ fromMinAndSize()

static unsafe MR.Box2i MR.ConstBox_Box2i.fromMinAndSize ( in MR.Vector2i min,
in MR.Vector2i size )
inlinestatic

Generated from method MR.Box2i.fromMinAndSize.

◆ getBoxClosestPointTo()

unsafe MR.Vector2i MR.ConstBox_Box2i.getBoxClosestPointTo ( in MR.Vector2i pt)
inline

returns closest point in the box to given point Generated from method MR.Box2i.getBoxClosestPointTo.

◆ getDistanceSq() [1/2]

unsafe int MR.ConstBox_Box2i.getDistanceSq ( in MR.Box2i b)
inline

returns squared distance between this box and given one; returns zero if the boxes touch or intersect Generated from method MR.Box2i.getDistanceSq.

◆ getDistanceSq() [2/2]

unsafe int MR.ConstBox_Box2i.getDistanceSq ( in MR.Vector2i 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.Box2i.getDistanceSq.

◆ getMaxBoxCorner()

static unsafe MR.Vector2b MR.ConstBox_Box2i.getMaxBoxCorner ( in MR.Vector2i 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.Box2i.getMaxBoxCorner.

◆ getMinBoxCorner()

static unsafe MR.Vector2b MR.ConstBox_Box2i.getMinBoxCorner ( in MR.Vector2i 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.Box2i.getMinBoxCorner.

◆ getProjection()

unsafe MR.Vector2i MR.ConstBox_Box2i.getProjection ( in MR.Vector2i 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.Box2i.getProjection.

◆ insignificantlyExpanded()

unsafe MR.Box2i MR.ConstBox_Box2i.insignificantlyExpanded ( )
inline

decreases min and increases max to their closest representable value Generated from method MR.Box2i.insignificantlyExpanded.

◆ intersection()

unsafe MR.Box2i MR.ConstBox_Box2i.intersection ( in MR.Box2i b)
inline

computes intersection between this and other box Generated from method MR.Box2i.intersection.

◆ intersects()

unsafe bool MR.ConstBox_Box2i.intersects ( in MR.Box2i b)
inline

checks whether this box intersects or touches given box Generated from method MR.Box2i.intersects.

◆ operator ConstBox_Box2i()

static implicit MR.ConstBox_Box2i.operator ConstBox_Box2i ( Box2i other)
inlinestatic

Convert from a struct by copying it. Note that only ConstBox_Box2i has this conversion, Box_Box2i intentionally doesn't.

◆ operator!=()

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

◆ operator==()

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

Generated from method MR.Box2i.operator==.

◆ size()

unsafe MR.Vector2i MR.ConstBox_Box2i.size ( )
inline

computes size of the box in all dimensions Generated from method MR.Box2i.size.

◆ valid()

unsafe bool MR.ConstBox_Box2i.valid ( )
inline

true if the box contains at least one point Generated from method MR.Box2i.valid.

◆ volume()

unsafe int MR.ConstBox_Box2i.volume ( )
inline

computes the volume of this box Generated from method MR.Box2i.volume.

Member Data Documentation

◆ __ref_storage_Elements

unsafe int* MR.ConstBox_Box2i.__ref_storage_Elements
staticprotected

Property Documentation

◆ Elements

unsafe int MR.ConstBox_Box2i.Elements
staticget

◆ max

ref readonly MR.Vector2i MR.ConstBox_Box2i.max
get

◆ min

ref readonly MR.Vector2i MR.ConstBox_Box2i.min
get

◆ this[int e]

unsafe ref readonly MR.Vector2i MR.ConstBox_Box2i.this[int e]
get

min/max access by 0/1 index Generated from method MR.Box2i.operator[].


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