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

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

+ Inheritance diagram for MR.ConstBox_Box3d:

Classes

struct  _Underlying
 

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

virtual unsafe void Dispose (bool disposing)
 

Static Protected Attributes

static unsafe int * __ref_storage_Elements
 

Properties

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

Detailed Description

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

Constructor & Destructor Documentation

◆ ConstBox_Box3d() [1/5]

unsafe MR.ConstBox_Box3d.ConstBox_Box3d ( Box3d 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_Box3d() [2/5]

unsafe MR.ConstBox_Box3d.ConstBox_Box3d ( ConstBox_Box3d _other)
inline

Generated copy constructor.

◆ ConstBox_Box3d() [3/5]

unsafe MR.ConstBox_Box3d.ConstBox_Box3d ( )
inline

Constructs an empty (default-constructed) instance.

◆ ConstBox_Box3d() [4/5]

unsafe MR.ConstBox_Box3d.ConstBox_Box3d ( in MR.Vector3d min,
in MR.Vector3d max )
inline

Generated from constructor MR.Box3d.Box3d.

◆ ConstBox_Box3d() [5/5]

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

Generated from constructor MR.Box3d.Box3d.

Member Function Documentation

◆ center()

unsafe MR.Vector3d MR.ConstBox_Box3d.center ( )
inline

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

◆ contains() [1/2]

unsafe bool MR.ConstBox_Box3d.contains ( in MR.Box3d otherbox)
inline

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

◆ contains() [2/2]

unsafe bool MR.ConstBox_Box3d.contains ( in MR.Vector3d pt)
inline

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

◆ corner()

unsafe MR.Vector3d MR.ConstBox_Box3d.corner ( in MR.Vector3b 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.Box3d.corner.

◆ diagonal()

unsafe double MR.ConstBox_Box3d.diagonal ( )
inline

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

◆ Dispose() [1/2]

virtual void MR.ConstBox_Box3d.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

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

◆ Equals() [1/2]

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

◆ Equals() [2/2]

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

◆ expanded()

unsafe MR.Box3d MR.ConstBox_Box3d.expanded ( in MR.Vector3d expansion)
inline

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

◆ fromMinAndSize()

static unsafe MR.Box3d MR.ConstBox_Box3d.fromMinAndSize ( in MR.Vector3d min,
in MR.Vector3d size )
inlinestatic

Generated from method MR.Box3d.fromMinAndSize.

◆ getBoxClosestPointTo()

unsafe MR.Vector3d MR.ConstBox_Box3d.getBoxClosestPointTo ( in MR.Vector3d pt)
inline

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

◆ getDistanceSq() [1/2]

unsafe double MR.ConstBox_Box3d.getDistanceSq ( in MR.Box3d b)
inline

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

◆ getDistanceSq() [2/2]

unsafe double MR.ConstBox_Box3d.getDistanceSq ( in MR.Vector3d 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.Box3d.getDistanceSq.

◆ getMaxBoxCorner()

static unsafe MR.Vector3b MR.ConstBox_Box3d.getMaxBoxCorner ( in MR.Vector3d 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.Box3d.getMaxBoxCorner.

◆ getMinBoxCorner()

static unsafe MR.Vector3b MR.ConstBox_Box3d.getMinBoxCorner ( in MR.Vector3d 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.Box3d.getMinBoxCorner.

◆ getProjection()

unsafe MR.Vector3d MR.ConstBox_Box3d.getProjection ( in MR.Vector3d 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.Box3d.getProjection.

◆ insignificantlyExpanded()

unsafe MR.Box3d MR.ConstBox_Box3d.insignificantlyExpanded ( )
inline

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

◆ intersection()

unsafe MR.Box3d MR.ConstBox_Box3d.intersection ( in MR.Box3d b)
inline

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

◆ intersects()

unsafe bool MR.ConstBox_Box3d.intersects ( in MR.Box3d b)
inline

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

◆ operator ConstBox_Box3d()

static implicit MR.ConstBox_Box3d.operator ConstBox_Box3d ( Box3d other)
inlinestatic

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

◆ operator!=()

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

◆ operator==()

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

Generated from method MR.Box3d.operator==.

◆ size()

unsafe MR.Vector3d MR.ConstBox_Box3d.size ( )
inline

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

◆ valid()

unsafe bool MR.ConstBox_Box3d.valid ( )
inline

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

◆ volume()

unsafe double MR.ConstBox_Box3d.volume ( )
inline

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

Member Data Documentation

◆ __ref_storage_Elements

unsafe int* MR.ConstBox_Box3d.__ref_storage_Elements
staticprotected

Property Documentation

◆ Elements

unsafe int MR.ConstBox_Box3d.Elements
staticget

◆ max

ref readonly MR.Vector3d MR.ConstBox_Box3d.max
get

◆ min

ref readonly MR.Vector3d MR.ConstBox_Box3d.min
get

◆ this[int e]

unsafe ref readonly MR.Vector3d MR.ConstBox_Box3d.this[int e]
get

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


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