FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
Vector2d.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2024 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
18
19class AcGeVector2d;
20
22{
23public:
24 static Vector2d const kNull;
25 static Vector2d const kXDir;
26 static Vector2d const kYDir;
27
28public:
30 Vector2d( double, double );
31 Vector2d( void );
32 Vector2d( const Vector2d& ) {};
33 // operator AcGeVector2d & (void) ;
34 // operator AcGeVector2d const & (void)const ;
35 bool isEqual( Vector2d, double )const;
36 bool isEqualRect( Vector2d, double )const;
37 bool isExactNull( void )const;
38 bool isNull( double )const;
39 bool isParallel( Vector2d const& )const;
40 bool isPerpend( Vector2d const& )const;
43 Vector2d normalize( void )const;
44 Vector2d operator*( double )const;
47 Vector2d operator-( void )const;
48 Vector2d operator/( double )const;
49 Vector2d perpend( void )const;
50 double& operator[]( int );
51 double angle( Vector2d const& )const;
52 double dist( Vector2d )const;
53 double distRect( Vector2d )const;
54 double distSqrd( Vector2d )const;
55 double length( void )const;
56 double lengthRect( void )const;
57 double lengthSqrd( void )const;
58 double operator%( Vector2d )const;
59 double operator[]( int )const;
61 void operator*=( double );
64 void operator/=( double );
65};
double distSqrd(Vector2d) const
Vector2d operator+(Vector2d) const
Vector2d(double, double)
void operator/=(double)
Vector2d normalize(void) const
double operator%(Vector2d) const
static Vector2d const kYDir
Definition Vector2d.h:26
bool isParallel(Vector2d const &) const
Vector2d operator-(Vector2d) const
Vector2d perpend(void) const
Vector2d(const Vector2d &)
Definition Vector2d.h:32
static Vector2d const kXDir
Definition Vector2d.h:25
bool isEqualRect(Vector2d, double) const
bool isEqual(Vector2d, double) const
double length(void) const
Vector2d operator/(double) const
void operator*=(double)
void operator-=(Vector2d)
double & operator[](int)
void operator+=(Vector2d)
Vector2d & operator=(Vector2d const &)
bool isPerpend(Vector2d const &) const
double dist(Vector2d) const
Vector2d operator-(void) const
Vector2d operator*(double) const
double lengthSqrd(void) const
Vector2d(AcGeVector2d const &)
bool isNull(double) const
double angle(Vector2d const &) const
double operator[](int) const
double lengthRect(void) const
static Vector2d & cast(AcGeVector2d &)
double distRect(Vector2d) const
Vector2d & operator=(Vector2d &&)
static Vector2d const kNull
Definition Vector2d.h:24
bool isExactNull(void) const
Vector2d(void)