Public Member Functions | |
Properties | |
string | toString () |
Returns a string representation of this Vector. | |
Operators | |
Vector | opNeg () |
Negates this vector. | |
Vector | opAdd (Vector v) |
Adds another vector to this one. | |
Point | opAdd (Point p) |
Adds this vector to a point. | |
Vector | opSub (Vector v) |
Subtracts another vector from this one. | |
Vector | opMul (int mul) |
Multiplies this vector by a scalar. | |
Vector | opDiv (int div) |
Divides this vector by a scalar. | |
Vector | opMod (int mod) |
Calculates the remainder ater dividing each component of the vector by a scalar. | |
Vector | opMod (Vector mod) |
Calculates the element-wise remainder after division of this vector by another. | |
Vector | opAddAssign (Vector v) |
Vector | opSubAssign (Vector v) |
Vector | opMulAssign (int mul) |
Vector | opDivAssign (int div) |
Vector | opModAssign (int mod) |
Vector | opModAssign (Vector mod) |
Static Public Member Functions | |
static Vector | opCall (int x, int y) |
Constructs a Vector with the given components. | |
Public Attributes | |
SIZE | sz |
This vector as a Windows SIZE structure. | |
int | x |
int | y |
This type is a wrapper around the Windows API SIZE
structure.
static Vector smjg.libs.sdwf.geometry.Vector.opCall | ( | int | x, | |
int | y | |||
) | [static] |
string smjg.libs.sdwf.geometry.Vector.toString | ( | ) |
Returns a string representation of this Vector.
Vector smjg.libs.sdwf.geometry.Vector.opNeg | ( | ) |
Negates this vector.
Adds another vector to this one.
Adds this vector to a point.
Subtracts another vector from this one.
Vector smjg.libs.sdwf.geometry.Vector.opMul | ( | int | mul | ) |
Multiplies this vector by a scalar.
Vector smjg.libs.sdwf.geometry.Vector.opDiv | ( | int | div | ) |
Divides this vector by a scalar.
Vector smjg.libs.sdwf.geometry.Vector.opMod | ( | int | mod | ) |
Calculates the remainder ater dividing each component of the vector by a scalar.
Calculates the element-wise remainder after division of this vector by another.
Vector smjg.libs.sdwf.geometry.Vector.opMulAssign | ( | int | mul | ) |
Vector smjg.libs.sdwf.geometry.Vector.opDivAssign | ( | int | div | ) |
Vector smjg.libs.sdwf.geometry.Vector.opModAssign | ( | int | mod | ) |
This vector as a Windows SIZE
structure.