Sub subtracts the other side floats from the side floats and returns the result
(other SideFloats)
| 276 | // Sub subtracts the other side floats from |
| 277 | // the side floats and returns the result |
| 278 | func (sf SideFloats) Sub(other SideFloats) SideFloats { |
| 279 | return NewSideFloats( |
| 280 | sf.Top-other.Top, |
| 281 | sf.Right-other.Right, |
| 282 | sf.Bottom-other.Bottom, |
| 283 | sf.Left-other.Left, |
| 284 | ) |
| 285 | } |
| 286 | |
| 287 | // MulScalar multiplies each side by the given scalar value |
| 288 | // and returns the result. |
no test coverage detected