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

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

+ Inheritance diagram for MR.Box_Box2d:

Public Member Functions

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

Properties

unsafe new ref Box2d _Ref [get]
 Get the underlying struct.
 
new ref MR.Vector2d min [get]
 
new ref MR.Vector2d max [get]
 
unsafe new ref MR.Vector2d this[int e] [get]
 Generated from method MR.Box2d.operator[].
 
- Properties inherited from MR.ConstBox_Box2d
unsafe ref readonly Box2d _Ref [get]
 Get the underlying struct.
 
ref readonly MR.Vector2d min [get]
 
ref readonly MR.Vector2d max [get]
 
static unsafe int Elements [get]
 
unsafe ref readonly MR.Vector2d this[int e] [get]
 min/max access by 0/1 index Generated from method MR.Box2d.operator[].
 
- Properties inherited from MR.Misc.Object< ConstBox_Box2d >
virtual bool _IsOwning [get]
 Returns true if this is an owning instance, and when disposed, will destroy the underlying C++ instance. If false, we assume that the underlying C++ instance will live long enough.
 

Additional Inherited Members

- Static Public Member Functions inherited from MR.ConstBox_Box2d
static implicit operator ConstBox_Box2d (Box2d other)
 Convert from a struct by copying it. Note that only ConstBox_Box2d has this conversion, Box_Box2d intentionally doesn't.
 
static unsafe MR.Box2d fromMinAndSize (in MR.Vector2d min, in MR.Vector2d size)
 Generated from method MR.Box2d.fromMinAndSize.
 
static unsafe MR.Vector2b getMinBoxCorner (in MR.Vector2d 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.Box2d.getMinBoxCorner.
 
static unsafe MR.Vector2b getMaxBoxCorner (in MR.Vector2d 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.Box2d.getMaxBoxCorner.
 
static unsafe bool operator== (MR.ConstBox_Box2d _this, MR.ConstBox_Box2d a)
 Generated from method MR.Box2d.operator==.
 
static unsafe bool operator!= (MR.ConstBox_Box2d _this, MR.ConstBox_Box2d a)
 
- Protected Member Functions inherited from MR.ConstBox_Box2d
virtual unsafe void Dispose (bool disposing)
 
- Protected Attributes inherited from MR.Misc.Object< ConstBox_Box2d >
bool _IsOwningVal
 

Detailed Description

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


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