finally fixed bmp bgr/rgb bug.
This commit is contained in:
@@ -247,7 +247,6 @@ public:
|
||||
return Vec3<bool>(comp(x, other.x), comp(y, other.y), comp(z, other.z));
|
||||
}
|
||||
|
||||
|
||||
Vec3 abs() const {
|
||||
return Vec3(std::abs(x), std::abs(y), std::abs(z));
|
||||
}
|
||||
@@ -267,6 +266,10 @@ public:
|
||||
Vec3<float> toFloat() const {
|
||||
return Vec3<float>(static_cast<float>(x), static_cast<float>(y), static_cast<float>(z));
|
||||
}
|
||||
|
||||
Vec3<double> toDouble() const {
|
||||
return Vec3<double>(static_cast<double>(x), static_cast<double>(y), static_cast<double>(z));
|
||||
}
|
||||
|
||||
Vec3 ceil() const {
|
||||
return Vec3(std::ceil(x), std::ceil(y), std::ceil(z));
|
||||
|
||||
Reference in New Issue
Block a user