MeshLib C# Docs
Loading...
Searching...
No Matches
MR.Box1i Struct Reference

Box given by its min- and max- corners Generated from class MR.Box1i. This is the by-value version of the struct. More...

+ Inheritance diagram for MR.Box1i:

Public Member Functions

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

Static Public Member Functions

static implicit operator Box1i (ConstBox_Box1i other)
 Copy contents from a wrapper class to this struct.
 
static unsafe MR.Box1i fromMinAndSize (int min, int size)
 Generated from method MR.Box1i.fromMinAndSize.
 
static unsafe bool getMinBoxCorner (int 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.Box1i.getMinBoxCorner.
 
static unsafe bool getMaxBoxCorner (int 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.Box1i.getMaxBoxCorner.
 
static unsafe bool operator== (MR.Box1i _this, MR.Box1i a)
 Generated from method MR.Box1i.operator==.
 
static unsafe bool operator!= (MR.Box1i _this, MR.Box1i a)
 

Public Attributes

int min
 
int max
 

Properties

readonly unsafe int this[int e] [get]
 min/max access by 0/1 index Generated from method MR.Box1i.operator[].
 

Detailed Description

Box given by its min- and max- corners Generated from class MR.Box1i. This is the by-value version of the struct.

Constructor & Destructor Documentation

◆ Box1i() [1/4]

MR.Box1i.Box1i ( Box1i _other)
inline

Generated copy constructor.

◆ Box1i() [2/4]

unsafe MR.Box1i.Box1i ( )
inline

Constructs an empty (default-constructed) instance.

◆ Box1i() [3/4]

unsafe MR.Box1i.Box1i ( int min,
int max )
inline

Generated from constructor MR.Box1i.Box1i.

◆ Box1i() [4/4]

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

Generated from constructor MR.Box1i.Box1i.

Member Function Documentation

◆ center()

readonly unsafe int MR.Box1i.center ( )
inline

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

◆ contains() [1/2]

readonly unsafe bool MR.Box1i.contains ( in MR.Box1i otherbox)
inline

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

◆ contains() [2/2]

readonly unsafe bool MR.Box1i.contains ( int pt)
inline

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

◆ corner()

readonly unsafe int MR.Box1i.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.Box1i.corner.

◆ diagonal()

readonly unsafe int MR.Box1i.diagonal ( )
inline

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

◆ Equals() [1/2]

bool MR.Box1i.Equals ( MR.Box1i a)
inline

◆ Equals() [2/2]

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

◆ expanded()

readonly unsafe MR.Box1i MR.Box1i.expanded ( int expansion)
inline

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

◆ fromMinAndSize()

static unsafe MR.Box1i MR.Box1i.fromMinAndSize ( int min,
int size )
inlinestatic

Generated from method MR.Box1i.fromMinAndSize.

◆ getBoxClosestPointTo()

readonly unsafe int MR.Box1i.getBoxClosestPointTo ( int pt)
inline

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

◆ getDistanceSq() [1/2]

readonly unsafe int MR.Box1i.getDistanceSq ( in MR.Box1i b)
inline

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

◆ getDistanceSq() [2/2]

readonly unsafe int MR.Box1i.getDistanceSq ( int 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.Box1i.getDistanceSq.

◆ getMaxBoxCorner()

static unsafe bool MR.Box1i.getMaxBoxCorner ( int 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.Box1i.getMaxBoxCorner.

◆ getMinBoxCorner()

static unsafe bool MR.Box1i.getMinBoxCorner ( int 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.Box1i.getMinBoxCorner.

◆ getProjection()

readonly unsafe int MR.Box1i.getProjection ( int 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.Box1i.getProjection.

◆ include() [1/2]

unsafe void MR.Box1i.include ( in MR.Box1i b)
inline

minimally increases the box to include another box Generated from method MR.Box1i.include.

◆ include() [2/2]

unsafe void MR.Box1i.include ( int pt)
inline

minimally increases the box to include given point Generated from method MR.Box1i.include.

◆ index()

unsafe ref int MR.Box1i.index ( int e)
inline

Generated from method MR.Box1i.operator[].

◆ insignificantlyExpanded()

readonly unsafe MR.Box1i MR.Box1i.insignificantlyExpanded ( )
inline

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

◆ intersect()

unsafe ref MR.Box1i MR.Box1i.intersect ( in MR.Box1i b)
inline

Generated from method MR.Box1i.intersect.

◆ intersection()

readonly unsafe MR.Box1i MR.Box1i.intersection ( in MR.Box1i b)
inline

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

◆ intersects()

readonly unsafe bool MR.Box1i.intersects ( in MR.Box1i b)
inline

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

◆ operator Box1i()

static implicit MR.Box1i.operator Box1i ( ConstBox_Box1i other)
static

Copy contents from a wrapper class to this struct.

◆ operator!=()

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

◆ operator==()

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

Generated from method MR.Box1i.operator==.

◆ size()

readonly unsafe int MR.Box1i.size ( )
inline

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

◆ valid()

readonly unsafe bool MR.Box1i.valid ( )
inline

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

◆ volume()

readonly unsafe int MR.Box1i.volume ( )
inline

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

Member Data Documentation

◆ max

int MR.Box1i.max

◆ min

int MR.Box1i.min

Property Documentation

◆ this[int e]

readonly unsafe int MR.Box1i.this[int e]
get

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


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