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

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

+ Inheritance diagram for MR.Box1d:

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

double min
 
double max
 

Properties

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

Detailed Description

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


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