two-dimensional vector Generated from class MR.Vector2i. This is the const reference to the struct.
More...
Inheritance diagram for MR.ConstBox_Vector2i:Classes | |
| struct | _Underlying |
Public Member Functions | |
| unsafe | ConstBox_Vector2i (Vector2i 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_Vector2i (ConstBox_Vector2i _other) |
| Generated copy constructor. | |
| unsafe | ConstBox_Vector2i () |
| Constructs an empty (default-constructed) instance. | |
| unsafe | ConstBox_Vector2i (MR.Const_NoInit _1) |
Generated from constructor MR.Vector2i.Vector2i. | |
| unsafe | ConstBox_Vector2i (int x, int y) |
Generated from constructor MR.Vector2i.Vector2i. | |
| unsafe int | lengthSq () |
Generated from method MR.Vector2i.lengthSq. | |
| unsafe double | length () |
Generated from method MR.Vector2i.length. | |
| unsafe MR.Vector2i | furthestBasisVector () |
returns one of 2 basis unit vector that makes the biggest angle with the direction specified by this Generated from method MR.Vector2i.furthestBasisVector. | |
| unsafe MR.Vector2i | perpendicular () |
returns same length vector orthogonal to this (rotated 90 degrees counter-clockwise) Generated from method MR.Vector2i.perpendicular. | |
| bool | Equals (MR.ConstBox_Vector2i? b) |
| override bool | Equals (object? other) |
Static Public Member Functions | |
| static implicit | operator ConstBox_Vector2i (Vector2i other) |
Convert from a struct by copying it. Note that only ConstBox_Vector2i has this conversion, Box_Vector2i intentionally doesn't. | |
| static MR.Vector2i | diagonal (int a) |
Generated from method MR.Vector2i.diagonal. | |
| static MR.Vector2i | plusX () |
Generated from method MR.Vector2i.plusX. | |
| static MR.Vector2i | plusY () |
Generated from method MR.Vector2i.plusY. | |
| static MR.Vector2i | minusX () |
Generated from method MR.Vector2i.minusX. | |
| static MR.Vector2i | minusY () |
Generated from method MR.Vector2i.minusY. | |
| static unsafe bool | operator== (MR.ConstBox_Vector2i a, MR.ConstBox_Vector2i b) |
Generated from function MR.operator==. | |
| static unsafe bool | operator!= (MR.ConstBox_Vector2i a, MR.ConstBox_Vector2i b) |
| static unsafe MR.Misc.ConstRef< MR.Vector2i > | operator+ (MR.ConstBox_Vector2i a) |
Generated from function MR.operator+. | |
| static unsafe MR.Vector2i | operator- (MR.ConstBox_Vector2i a) |
Generated from function MR.operator-. | |
| static unsafe MR.Vector2i | operator+ (MR.ConstBox_Vector2i a, in MR.Vector2i b) |
Generated from function MR.operator+. | |
| static unsafe MR.Vector2i | operator- (MR.ConstBox_Vector2i a, in MR.Vector2i b) |
Generated from function MR.operator-. | |
| static unsafe MR.Vector2i | operator* (int a, MR.ConstBox_Vector2i b) |
Generated from function MR.operator*. | |
| static unsafe MR.Vector2i | operator* (MR.ConstBox_Vector2i b, int a) |
Generated from function MR.operator*. | |
| static unsafe MR.Vector2i | operator/ (ConstBox_Vector2i b, int a) |
Generated from function MR.operator/. | |
Protected Member Functions | |
| virtual unsafe void | Dispose (bool disposing) |
Properties | |
| unsafe ref readonly Vector2i | _Ref [get] |
| Get the underlying struct. | |
| ref readonly int | x [get] |
| ref readonly int | y [get] |
| static unsafe int | Elements [get] |
| unsafe int | this[int e] [get] |
Generated from method MR.Vector2i.operator[]. | |
Properties inherited from MR.Misc.Object< ConstBox_Vector2i > | |
| 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 | |
Protected Attributes inherited from MR.Misc.Object< ConstBox_Vector2i > | |
| bool | _IsOwningVal |
two-dimensional vector Generated from class MR.Vector2i. This is the const reference to the struct.