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

Box given by its min- and max- corners Generated from class MR.Box1f. Derived classes: Direct: (non-virtual) MR.SimpleVolumeMinMax MR.VdbVolume This is the by-value version of the struct. More...

+ Inheritance diagram for MR.Box1f:

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

float min
 
float max
 

Properties

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

Detailed Description

Box given by its min- and max- corners Generated from class MR.Box1f. Derived classes: Direct: (non-virtual) MR.SimpleVolumeMinMax MR.VdbVolume This is the by-value version of the struct.

Constructor & Destructor Documentation

◆ Box1f() [1/4]

MR.Box1f.Box1f ( Box1f _other)
inline

Generated copy constructor.

◆ Box1f() [2/4]

unsafe MR.Box1f.Box1f ( )
inline

Constructs an empty (default-constructed) instance.

◆ Box1f() [3/4]

unsafe MR.Box1f.Box1f ( float min,
float max )
inline

Generated from constructor MR.Box1f.Box1f.

◆ Box1f() [4/4]

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

Generated from constructor MR.Box1f.Box1f.

Member Function Documentation

◆ center()

readonly unsafe float MR.Box1f.center ( )
inline

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

◆ contains() [1/2]

readonly unsafe bool MR.Box1f.contains ( float pt)
inline

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

◆ contains() [2/2]

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

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

◆ corner()

readonly unsafe float MR.Box1f.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.Box1f.corner.

◆ diagonal()

readonly unsafe float MR.Box1f.diagonal ( )
inline

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

◆ Equals() [1/2]

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

◆ Equals() [2/2]

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

◆ expanded()

readonly unsafe MR.Box1f MR.Box1f.expanded ( float expansion)
inline

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

◆ fromMinAndSize()

static unsafe MR.Box1f MR.Box1f.fromMinAndSize ( float min,
float size )
inlinestatic

Generated from method MR.Box1f.fromMinAndSize.

◆ getBoxClosestPointTo()

readonly unsafe float MR.Box1f.getBoxClosestPointTo ( float pt)
inline

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

◆ getDistanceSq() [1/2]

readonly unsafe float MR.Box1f.getDistanceSq ( float 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.Box1f.getDistanceSq.

◆ getDistanceSq() [2/2]

readonly unsafe float MR.Box1f.getDistanceSq ( in MR.Box1f b)
inline

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

◆ getMaxBoxCorner()

static unsafe bool MR.Box1f.getMaxBoxCorner ( float 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.Box1f.getMaxBoxCorner.

◆ getMinBoxCorner()

static unsafe bool MR.Box1f.getMinBoxCorner ( float 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.Box1f.getMinBoxCorner.

◆ getProjection()

readonly unsafe float MR.Box1f.getProjection ( float 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.Box1f.getProjection.

◆ include() [1/2]

unsafe void MR.Box1f.include ( float pt)
inline

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

◆ include() [2/2]

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

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

◆ index()

unsafe ref float MR.Box1f.index ( int e)
inline

Generated from method MR.Box1f.operator[].

◆ insignificantlyExpanded()

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

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

◆ intersect()

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

Generated from method MR.Box1f.intersect.

◆ intersection()

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

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

◆ intersects()

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

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

◆ operator Box1f()

static implicit MR.Box1f.operator Box1f ( ConstBox_Box1f other)
static

Copy contents from a wrapper class to this struct.

◆ operator!=()

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

◆ operator==()

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

Generated from method MR.Box1f.operator==.

◆ size()

readonly unsafe float MR.Box1f.size ( )
inline

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

◆ valid()

readonly unsafe bool MR.Box1f.valid ( )
inline

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

◆ volume()

readonly unsafe float MR.Box1f.volume ( )
inline

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

Member Data Documentation

◆ max

float MR.Box1f.max

◆ min

float MR.Box1f.min

Property Documentation

◆ this[int e]

readonly unsafe float MR.Box1f.this[int e]
get

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


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