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

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

+ Inheritance diagram for MR.Box1i64:

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

long min
 
long max
 

Properties

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

Detailed Description

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

Constructor & Destructor Documentation

◆ Box1i64() [1/4]

MR.Box1i64.Box1i64 ( Box1i64 _other)
inline

Generated copy constructor.

◆ Box1i64() [2/4]

unsafe MR.Box1i64.Box1i64 ( )
inline

Constructs an empty (default-constructed) instance.

◆ Box1i64() [3/4]

unsafe MR.Box1i64.Box1i64 ( long min,
long max )
inline

Generated from constructor MR.Box1i64.Box1i64.

◆ Box1i64() [4/4]

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

Generated from constructor MR.Box1i64.Box1i64.

Member Function Documentation

◆ center()

readonly unsafe long MR.Box1i64.center ( )
inline

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

◆ contains() [1/2]

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

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

◆ contains() [2/2]

readonly unsafe bool MR.Box1i64.contains ( long pt)
inline

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

◆ corner()

readonly unsafe long MR.Box1i64.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.Box1i64.corner.

◆ diagonal()

readonly unsafe long MR.Box1i64.diagonal ( )
inline

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

◆ Equals() [1/2]

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

◆ Equals() [2/2]

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

◆ expanded()

readonly unsafe MR.Box1i64 MR.Box1i64.expanded ( long expansion)
inline

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

◆ fromMinAndSize()

static unsafe MR.Box1i64 MR.Box1i64.fromMinAndSize ( long min,
long size )
inlinestatic

Generated from method MR.Box1i64.fromMinAndSize.

◆ getBoxClosestPointTo()

readonly unsafe long MR.Box1i64.getBoxClosestPointTo ( long pt)
inline

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

◆ getDistanceSq() [1/2]

readonly unsafe long MR.Box1i64.getDistanceSq ( in MR.Box1i64 b)
inline

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

◆ getDistanceSq() [2/2]

readonly unsafe long MR.Box1i64.getDistanceSq ( long 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.Box1i64.getDistanceSq.

◆ getMaxBoxCorner()

static unsafe bool MR.Box1i64.getMaxBoxCorner ( long 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.Box1i64.getMaxBoxCorner.

◆ getMinBoxCorner()

static unsafe bool MR.Box1i64.getMinBoxCorner ( long 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.Box1i64.getMinBoxCorner.

◆ getProjection()

readonly unsafe long MR.Box1i64.getProjection ( long 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.Box1i64.getProjection.

◆ include() [1/2]

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

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

◆ include() [2/2]

unsafe void MR.Box1i64.include ( long pt)
inline

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

◆ index()

unsafe ref long MR.Box1i64.index ( int e)
inline

Generated from method MR.Box1i64.operator[].

◆ insignificantlyExpanded()

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

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

◆ intersect()

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

Generated from method MR.Box1i64.intersect.

◆ intersection()

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

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

◆ intersects()

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

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

◆ operator Box1i64()

static implicit MR.Box1i64.operator Box1i64 ( ConstBox_Box1i64 other)
static

Copy contents from a wrapper class to this struct.

◆ operator!=()

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

◆ operator==()

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

Generated from method MR.Box1i64.operator==.

◆ size()

readonly unsafe long MR.Box1i64.size ( )
inline

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

◆ valid()

readonly unsafe bool MR.Box1i64.valid ( )
inline

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

◆ volume()

readonly unsafe long MR.Box1i64.volume ( )
inline

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

Member Data Documentation

◆ max

long MR.Box1i64.max

◆ min

long MR.Box1i64.min

Property Documentation

◆ this[int e]

readonly unsafe long MR.Box1i64.this[int e]
get

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


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