220 lines
3.2 KiB
C++
220 lines
3.2 KiB
C++
// BlitzUtility - Expanding the normal Blitz functionality.
|
|
// Copyright (C) 2015 Project Kube (Michael Fabian Dirks)
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Lesser General Public License as
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
// License, or (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
/*
|
|
#pragma once
|
|
#include "FVector2.h"
|
|
|
|
double FVector2::length()
|
|
{
|
|
return std::sqrtf(std::abs((this->X*this->X) + (this->Y*this->Y)));
|
|
}
|
|
|
|
void FVector2::normalize() {
|
|
double len = this->length();
|
|
double divisor = 1.0 / (len != 0 ? len : FLT_EPSILON);
|
|
}
|
|
|
|
double FVector2::distance(const FVector2 r)
|
|
{
|
|
float X = (this->X - r.X), Y = (this->Y - r.Y);
|
|
return std::sqrtf(std::abs(X*X + Y*Y));
|
|
}
|
|
|
|
const char* FVector2::serialize() {
|
|
|
|
}
|
|
|
|
FVector2& FVector2::deserialize(const char* serialized) {
|
|
|
|
}
|
|
|
|
FVector2::FVector2(float V) {
|
|
|
|
}
|
|
|
|
FVector2::FVector2(float X, float Y) {
|
|
|
|
}
|
|
|
|
FVector2::FVector2(FVector2& V) {
|
|
|
|
}
|
|
|
|
FVector2& FVector2::operator++() {
|
|
|
|
}
|
|
|
|
FVector2& FVector2::operator--() {
|
|
|
|
}
|
|
|
|
bool FVector2::operator>(const FVector2& r) {
|
|
|
|
}
|
|
|
|
bool FVector2::operator>(const float& r) {
|
|
|
|
}
|
|
|
|
|
|
bool FVector2::operator<(const FVector2& r) {
|
|
|
|
}
|
|
|
|
bool FVector2::operator<(const float& r) {
|
|
|
|
}
|
|
|
|
|
|
bool FVector2::operator==(const FVector2& r) {
|
|
|
|
}
|
|
|
|
bool FVector2::operator==(const float& r) {
|
|
|
|
}
|
|
|
|
|
|
bool FVector2::operator>=(const FVector2& r) {
|
|
|
|
}
|
|
|
|
bool FVector2::operator>=(const float& r) {
|
|
|
|
}
|
|
|
|
|
|
bool FVector2::operator<=(const FVector2& r) {
|
|
|
|
}
|
|
|
|
bool FVector2::operator<=(const float& r) {
|
|
|
|
}
|
|
|
|
|
|
bool FVector2::operator!=(const FVector2& r) {
|
|
|
|
}
|
|
|
|
bool FVector2::operator!=(const float& r) {
|
|
|
|
}
|
|
|
|
|
|
FVector2& FVector2::operator=(const FVector2& r) {
|
|
|
|
}
|
|
|
|
FVector2& FVector2::operator=(const float& r) {
|
|
|
|
}
|
|
|
|
|
|
FVector2& FVector2::operator+(const FVector2& r) {
|
|
|
|
}
|
|
|
|
FVector2& FVector2::operator+(const float& r) {
|
|
|
|
}
|
|
|
|
|
|
FVector2& FVector2::operator-(const FVector2& r) {
|
|
|
|
}
|
|
|
|
FVector2& FVector2::operator*(const FVector2& r) {
|
|
|
|
}
|
|
|
|
FVector2& FVector2::operator*(const float& r) {
|
|
|
|
}
|
|
|
|
|
|
FVector2& FVector2::operator/(const FVector2& r) {
|
|
|
|
}
|
|
|
|
FVector2& FVector2::operator/(const float& r) {
|
|
|
|
}
|
|
|
|
|
|
FVector2& FVector2::operator+=(const FVector2& r) {
|
|
|
|
}
|
|
|
|
FVector2& FVector2::operator+=(const float& r) {
|
|
|
|
}
|
|
|
|
|
|
FVector2& FVector2::operator-=(const FVector2& r) {
|
|
|
|
}
|
|
|
|
FVector2& FVector2::operator*=(const FVector2& r) {
|
|
|
|
}
|
|
|
|
FVector2& FVector2::operator*=(const float& r) {
|
|
|
|
}
|
|
|
|
|
|
FVector2& FVector2::operator/=(const FVector2& r) {
|
|
|
|
}
|
|
|
|
FVector2& FVector2::operator/=(const float& r) {
|
|
|
|
}
|
|
|
|
|
|
FVector2& FVector2::operator-(const float& r) {
|
|
|
|
}
|
|
|
|
FVector2& FVector2::operator-=(const float& r) {
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |