diff options
Diffstat (limited to 'docs/SkIPoint_Reference.bmh')
-rw-r--r-- | docs/SkIPoint_Reference.bmh | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/docs/SkIPoint_Reference.bmh b/docs/SkIPoint_Reference.bmh index 3a431dee10..857c25df87 100644 --- a/docs/SkIPoint_Reference.bmh +++ b/docs/SkIPoint_Reference.bmh @@ -32,15 +32,15 @@ SkIPoint holds two 32 bit integer coordinates. #Subtopic Operators #Table #Legend -# name # description ## +# name # description ## #Legend ## -# SkIPoint operator+(const SkIPoint& a, const SkIVector& b) # returns IPoint offset by IVector ## -# SkIPoint operator-()_const # reverses sign of IPoint ## -# SkIVector operator-(const SkIPoint& a, const SkIPoint& b) # returns IVector between IPoints ## -# bool operator!=(const SkIPoint& a, const SkIPoint& b) # returns true if IPoints are unequal ## -# bool operator==(const SkIPoint& a, const SkIPoint& b) # returns true if IPoints are equal ## -# void operator+=(const SkIVector& v) # adds IVector to IPoint ## -# void operator-=(const SkIVector& v) # subtracts IVector from IPoint ## +# operator+(const SkIPoint& a, const SkIVector& b) # returns IPoint offset by IVector ## +# operator-()_const # reverses sign of IPoint ## +# operator-(const SkIPoint& a, const SkIPoint& b) # returns IVector between IPoints ## +# operator!=(const SkIPoint& a, const SkIPoint& b) # returns true if IPoints are unequal ## +# operator==(const SkIPoint& a, const SkIPoint& b) # returns true if IPoints are equal ## +# operator+=(const SkIVector& v) # adds IVector to IPoint ## +# operator-=(const SkIVector& v) # subtracts IVector from IPoint ## #Table ## #Subtopic ## @@ -72,6 +72,7 @@ y-axis value used by IPoint. #Method static constexpr SkIPoint Make(int32_t x, int32_t y) +#Line # constructs from integer inputs ## Sets fX to x, fY to y. #Param x integer x-axis value of constructed IPoint ## @@ -96,6 +97,7 @@ pt1 == pt2 #Method int32_t x() const +#Line # returns fX ## Returns x-axis value of IPoint. #Return fX ## @@ -116,6 +118,7 @@ pt1.fX == pt1.x() #Method int32_t y() const +#Line # returns fY ## Returns y-axis value of IPoint. #Return fY ## @@ -136,6 +139,7 @@ pt1.fY == pt1.y() #Method bool isZero() const +#Line # returns true if both members equal zero ## Returns true if fX and fY are both zero. #Return true if fX is zero and fY is zero ## @@ -156,6 +160,7 @@ pt.isZero() == true #Method void set(int32_t x, int32_t y) +#Line # sets to integer input ## Sets fX to x and fY to y. #Param x new value for fX ## @@ -178,6 +183,7 @@ pt1 == pt2 #Method SkIPoint operator-()_const +#Line # reverses sign of IPoint ## Returns IPoint changing the signs of fX and fY. #Return IPoint as (-fX, -fY) ## @@ -206,6 +212,7 @@ pt: -2147483648, -2147483648 negate: -2147483648, -2147483648 #Method void operator+=(const SkIVector& v) +#Line # adds IVector to IPoint ## Offsets IPoint by IVector v. Sets IPoint to #Formula (fX + v.fX, fY + v.fY) @@ -244,6 +251,7 @@ Offsets IPoint by IVector v. Sets IPoint to #Method void operator-=(const SkIVector& v) +#Line # subtracts IVector from IPoint ## Subtracts IVector v from IPoint. Sets IPoint to: #Formula (fX - v.fX, fY - v.fY) @@ -282,6 +290,7 @@ Subtracts IVector v from IPoint. Sets IPoint to: #Method bool equals(int32_t x, int32_t y) const +#Line # returns true if members are equal ## Returns true if IPoint is equivalent to IPoint constructed from (x, y). #Param x value compared with fX ## @@ -310,6 +319,7 @@ pt: -2147483648, -1 == pt #Method bool operator==(const SkIPoint& a, const SkIPoint& b) +#Line # returns true if IPoints are equal ## Returns true if a is equivalent to b. #Param a IPoint to compare ## @@ -338,6 +348,7 @@ pt: -2147483648, -1 == pt #Method bool operator!=(const SkIPoint& a, const SkIPoint& b) +#Line # returns true if IPoints are unequal ## Returns true if a is not equivalent to b. #Param a IPoint to compare ## @@ -366,6 +377,7 @@ pt: -2147483648, -1 == pt #Method SkIVector operator-(const SkIPoint& a, const SkIPoint& b) +#Line # returns IVector between IPoints ## Returns IVector from b to a; computed as #Formula (a.fX - b.fX, a.fY - b.fY) @@ -409,6 +421,7 @@ Can also be used to subtract IVector from IVector, returning IVector. #Method SkIPoint operator+(const SkIPoint& a, const SkIVector& b) +#Line # returns IPoint offset by IVector ## Returns IPoint resulting from IPoint a offset by IVector b, computed as: #Formula (a.fX + b.fX, a.fY + b.fY) |