mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
first round of spritebatch improvements
This commit is contained in:
@ -13,6 +13,11 @@ public struct Point<T: AdditiveArithmetic & Hashable>: Hashable {
|
||||
self.y = value
|
||||
}
|
||||
|
||||
public init(_ size: Size<T>) {
|
||||
self.x = size.w
|
||||
self.y = size.h
|
||||
}
|
||||
|
||||
@inline(__always) public static func == (lhs: Self, rhs: Self) -> Bool { lhs.x == rhs.x && lhs.y == rhs.y }
|
||||
@inline(__always) public static func != (lhs: Self, rhs: Self) -> Bool { lhs.x != rhs.x || lhs.y != rhs.y }
|
||||
}
|
||||
|
Reference in New Issue
Block a user