MEng.Int2 represents a signed (integral) value from -32768 to 32767. This class provides a full set of mathematical operations on Int2 values.
Add([In] MEng.Int2 ToAdd) Returns MEng.Int2;
operator+([In] MEng.Int2 Src1, [In] MEng.Int2 Src2) Returns MEng.Int2;
Adds the two objects and returns the result, leaving both objects unaffected. They do the same thing, and are only syntactically different.
Div([In] MEng.Int2 DivBy) Returns MEng.Int2;
operator/([In] MEng.Int2 Src1, [In] MEng.Int2 Src2) Returns MEng.Int2;
Divides the left hand object by the right hand object, and returns the result, leaving both objects unaffected. They do the same thing, and are only syntactically different.
Equal([In] MEng.Int2 ToComp) Returns MEng.Boolean;
operator=([In] MEng.Int2 Src1, [In] MEng.Int2 Src2) Returns MEng.Boolean;
Compares the two objects and returns True if they are equal and False if they are unequal. Neither object is affected. They do the same thing, are only only syntactically different.
GetNegated() Returns MEng.Int2;
Returns a negated version of this object's value.
GtThan([In] MEng.Int2 ToComp) Returns MEng.Boolean;
operator>([In] MEng.Int2 Src1, [In] MEng.Int2 Src2) Returns MEng.Boolean;
GtThanEq([In] MEng.Int2 ToComp) Returns MEng.Boolean;
operator>=([In] MEng.Int2 Src1, [In] MEng.Int2 Src2) Returns MEng.Boolean;
Compares the two objects and returns True if the left hand object is greater (or greater than or equal), else it returns False. Neither object is affected. The two sets do the same thing, and are just syntactically different.
LsThan([In] MEng.Int2 ToComp) Returns MEng.Boolean;
operator<([In] MEng.Int2 Src1, [In] MEng.Int2 Src2) Returns MEng.Boolean;
LsThanEq([In] MEng.Int2 ToComp) Returns MEng.Boolean;
operator<=([In] MEng.Int2 Src1, [In] MEng.Int2 Src2) Returns MEng.Boolean;
Compares the two objects and returns True if the left hand object is less than (or less than or equal) the right hand object, else it returns False. Neither object is affected. The two sets do the same thing, and are just syntactically different.
MaxVal([In] MEng.Int2 Test) Returns MEng.Int2;
MinVal([In] MEng.Int2 Test) Returns MEng.Int2;
Returns the larger or smaller of this value and the passed test value. So if this object's value is larger or smaller, it will be returned, else the passed value will be returned.
ModDiv([In] MEng.Int2 DivBy) Returns MEng.Int2;
operator%([In] MEng.Int2 Src1, [In] MEng.Int2 Src2) Returns MEng.Int2;
Performs a modulo division and returns the remainder of the operation. These both do the same thing, they are just syntactically different.
Mul([In] MEng.Int2 MulBy) Returns MEng.Int2;
operator*([In] MEng.Int2 Src1, [In] MEng.Int2 Src2) Returns MEng.Int2;
Multiplies the left hand object by the right hand object, and returns the result, leaving both objects unaffected. They do the same thing, and are only syntactically different.
Sub([In] MEng.Int2 MulBy) Returns MEng.Int2;
operator-([In] MEng.Int2 Src1, [In] MEng.Int2 Src2) Returns MEng.Int2;
Subtracts the right hand object from the left hand object, and returns the result, leaving both objects unaffected. They do the same thing, and are only syntactically different.
Dec() Returns MEng.Int2;
operator--() Returns MEng.Int2;
If the value of this object is greater than the minimum value, it is decremented by one, else nothing happens. These both do the same thing, and are just syntactically different. This is a postfix decrement, so the value returned is the value before the decrement.
DivEq([In] MEng.Int2 DivBy);
operator/=([In] MEng.Int2 DivBy);
Divides this object by the passed object, updating this object with the resulting value. They do the same thing, and are only syntactically different.
Inc() Return MEng.Int2;
operator++() MEng.Int2;
If the value of this object is less than the maximum value, it is incremented by one, else nothing happens. These both do the same thing, and are just syntactically different. This is a postfix increment, so the value returned is the value before the increment.
ModDivEq([In] MEng.Int2 DivBy) Returns MEng.Int2;
operator%=([In] MEng.Int2 Src1, [In] MEng.Int2 Src2) Returns MEng.Int2;
Performs a modulo division and sets this object to the remainder of the operation. These both do the same thing, they are just syntactically different.
MinusEq([In] MEng.Int2 SrcVal);
operator-=([In] MEng.Int2 SrcVal);
Subtracts the passed object from this object, updating this object with the resulting value. They do the same thing, and are only syntactically different.
MulEq([In] MEng.Int2 SrcVal);
operator*=([In] MEng.Int2 SrcVal);
Multiplies this object by the passed object, updating this object with the resulting value. They do the same thing, and are only syntactically different.