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

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

+ Inheritance diagram for MR.ConstBox_Box1d:

Classes

struct  _Underlying
 

Public Member Functions

virtual void Dispose ()
 
unsafe ConstBox_Box1d (Box1d 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_Box1d (ConstBox_Box1d _other)
 Generated copy constructor.
 
unsafe ConstBox_Box1d ()
 Constructs an empty (default-constructed) instance.
 
unsafe ConstBox_Box1d (double min, double max)
 Generated from constructor MR.Box1d.Box1d.
 
unsafe ConstBox_Box1d (MR.Const_NoInit _1)
 Generated from constructor MR.Box1d.Box1d.
 
unsafe bool valid ()
 true if the box contains at least one point Generated from method MR.Box1d.valid.
 
unsafe double center ()
 computes center of the box Generated from method MR.Box1d.center.
 
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.
 
unsafe double size ()
 computes size of the box in all dimensions Generated from method MR.Box1d.size.
 
unsafe double diagonal ()
 computes length from min to max Generated from method MR.Box1d.diagonal.
 
unsafe double volume ()
 computes the volume of this box Generated from method MR.Box1d.volume.
 
unsafe bool contains (double pt)
 checks whether given point is inside (including the surface) of this box Generated from method MR.Box1d.contains.
 
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.
 
unsafe double getBoxClosestPointTo (double pt)
 returns closest point in the box to given point Generated from method MR.Box1d.getBoxClosestPointTo.
 
unsafe bool intersects (in MR.Box1d b)
 checks whether this box intersects or touches given box Generated from method MR.Box1d.intersects.
 
unsafe MR.Box1d intersection (in MR.Box1d b)
 computes intersection between this and other box Generated from method MR.Box1d.intersection.
 
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.
 
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.
 
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.
 
unsafe MR.Box1d expanded (double expansion)
 decreases min and increased max on given value Generated from method MR.Box1d.expanded.
 
unsafe MR.Box1d insignificantlyExpanded ()
 decreases min and increases max to their closest representable value Generated from method MR.Box1d.insignificantlyExpanded.
 
bool Equals (MR.ConstBox_Box1d? a)
 
override bool Equals (object? other)
 

Static Public Member Functions

static implicit operator ConstBox_Box1d (Box1d other)
 Convert from a struct by copying it. Note that only ConstBox_Box1d has this conversion, Box_Box1d intentionally doesn't.
 
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.ConstBox_Box1d _this, MR.ConstBox_Box1d a)
 Generated from method MR.Box1d.operator==.
 
static unsafe bool operator!= (MR.ConstBox_Box1d _this, MR.ConstBox_Box1d a)
 

Protected Member Functions

virtual unsafe void Dispose (bool disposing)
 

Static Protected Attributes

static unsafe int * __ref_storage_Elements
 

Properties

ref readonly double min [get]
 
ref readonly double max [get]
 
static unsafe int Elements [get]
 
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 const reference to the struct.

Constructor & Destructor Documentation

◆ ConstBox_Box1d() [1/5]

unsafe MR.ConstBox_Box1d.ConstBox_Box1d ( Box1d 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_Box1d() [2/5]

unsafe MR.ConstBox_Box1d.ConstBox_Box1d ( ConstBox_Box1d _other)
inline

Generated copy constructor.

◆ ConstBox_Box1d() [3/5]

unsafe MR.ConstBox_Box1d.ConstBox_Box1d ( )
inline

Constructs an empty (default-constructed) instance.

◆ ConstBox_Box1d() [4/5]

unsafe MR.ConstBox_Box1d.ConstBox_Box1d ( double min,
double max )
inline

Generated from constructor MR.Box1d.Box1d.

◆ ConstBox_Box1d() [5/5]

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

Generated from constructor MR.Box1d.Box1d.

Member Function Documentation

◆ center()

unsafe double MR.ConstBox_Box1d.center ( )
inline

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

◆ contains() [1/2]

unsafe bool MR.ConstBox_Box1d.contains ( double pt)
inline

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

◆ contains() [2/2]

unsafe bool MR.ConstBox_Box1d.contains ( in MR.Box1d otherbox)
inline

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

◆ corner()

unsafe double MR.ConstBox_Box1d.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.Box1d.corner.

◆ diagonal()

unsafe double MR.ConstBox_Box1d.diagonal ( )
inline

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

◆ Dispose() [1/2]

virtual void MR.ConstBox_Box1d.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

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

◆ Equals() [1/2]

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

◆ Equals() [2/2]

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

◆ expanded()

unsafe MR.Box1d MR.ConstBox_Box1d.expanded ( double expansion)
inline

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

◆ fromMinAndSize()

static unsafe MR.Box1d MR.ConstBox_Box1d.fromMinAndSize ( double min,
double size )
inlinestatic

Generated from method MR.Box1d.fromMinAndSize.

◆ getBoxClosestPointTo()

unsafe double MR.ConstBox_Box1d.getBoxClosestPointTo ( double pt)
inline

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

◆ getDistanceSq() [1/2]

unsafe double MR.ConstBox_Box1d.getDistanceSq ( double 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.Box1d.getDistanceSq.

◆ getDistanceSq() [2/2]

unsafe double MR.ConstBox_Box1d.getDistanceSq ( in MR.Box1d b)
inline

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

◆ getMaxBoxCorner()

static unsafe bool MR.ConstBox_Box1d.getMaxBoxCorner ( double 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.Box1d.getMaxBoxCorner.

◆ getMinBoxCorner()

static unsafe bool MR.ConstBox_Box1d.getMinBoxCorner ( double 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.Box1d.getMinBoxCorner.

◆ getProjection()

unsafe double MR.ConstBox_Box1d.getProjection ( double 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.Box1d.getProjection.

◆ insignificantlyExpanded()

unsafe MR.Box1d MR.ConstBox_Box1d.insignificantlyExpanded ( )
inline

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

◆ intersection()

unsafe MR.Box1d MR.ConstBox_Box1d.intersection ( in MR.Box1d b)
inline

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

◆ intersects()

unsafe bool MR.ConstBox_Box1d.intersects ( in MR.Box1d b)
inline

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

◆ operator ConstBox_Box1d()

static implicit MR.ConstBox_Box1d.operator ConstBox_Box1d ( Box1d other)
inlinestatic

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

◆ operator!=()

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

◆ operator==()

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

Generated from method MR.Box1d.operator==.

◆ size()

unsafe double MR.ConstBox_Box1d.size ( )
inline

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

◆ valid()

unsafe bool MR.ConstBox_Box1d.valid ( )
inline

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

◆ volume()

unsafe double MR.ConstBox_Box1d.volume ( )
inline

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

Member Data Documentation

◆ __ref_storage_Elements

unsafe int* MR.ConstBox_Box1d.__ref_storage_Elements
staticprotected

Property Documentation

◆ Elements

unsafe int MR.ConstBox_Box1d.Elements
staticget

◆ max

ref readonly double MR.ConstBox_Box1d.max
get

◆ min

ref readonly double MR.ConstBox_Box1d.min
get

◆ this[int e]

unsafe double MR.ConstBox_Box1d.this[int e]
get

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


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