FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
AcGeVector2d.h
Go to the documentation of this file.
1#pragma once
2
3//
4// (C) Copyright 2005-2024 by Graebert GmbH.
5//
6// Permission to use, copy, modify, and distribute this software in
7// object code form for any purpose and without fee is hereby granted,
8// provided that the above copyright notice appears in all copies and
9// that both that copyright notice and the limited warranty and
10// restricted rights notice below appear in all supporting
11// documentation.
12//
13// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
14// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
15// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
16// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
17// UNINTERRUPTED OR ERROR FREE.
18
19#include "..\acge17\AcGe.h"
20
21class AcGeMatrix2d;
22class AcGeTol;
23
25{
26
27public:
31 double x;
32 double y;
33
34public:
36 AcGeVector2d(double,double);
39 operator AcGeMatrix2d(void)const ;
40 bool isEqualTo( AcGeVector2d const &, AcGeTol const & = AcGeContext::gTol)const ;
41 bool operator!=( AcGeVector2d const &)const ;
42 bool operator==( AcGeVector2d const &)const ;
53 AcGeVector2d & set(double,double);
59 AcGeVector2d operator*(double)const ;
63 AcGeVector2d operator/(double)const ;
65 double & operator[](unsigned int);
66 double angle(void)const ;
67 double angleTo( AcGeVector2d const &)const ;
68 double dotProduct( AcGeVector2d const &)const ;
69 double length(void)const ;
70 double lengthSqrd(void)const ;
71 double operator[](unsigned int)const ;
80};
#define ARX_API_STATIC
Definition FxARXAPI.h:25
Frx::Boolean isPerpendicularTo(AcGeVector2d const &, AcGeTol const &, AcGe::ErrorCondition &) const
AcGeVector2d normal(AcGeTol const &=AcGeContext::gTol) const
AcGeVector2d perpVector(void) const
double dotProduct(AcGeVector2d const &) const
AcGeVector2d operator/(double) const
static ARX_API_STATIC AcGeVector2d const kXAxis
Frx::Boolean isParallelTo(AcGeVector2d const &, AcGeTol const &, AcGe::ErrorCondition &) const
AcGeVector2d & operator/=(double)
AcGeVector2d operator*(double) const
Frx::Boolean isCodirectionalTo(AcGeVector2d const &, AcGeTol const &=AcGeContext::gTol) const
Frx::Boolean isCodirectionalTo(AcGeVector2d const &, AcGeTol const &, AcGe::ErrorCondition &) const
AcGeVector2d & rotateBy(double)
~AcGeVector2d(void)
double lengthSqrd(void) const
AcGeVector2d & operator+=(AcGeVector2d const &)
bool isEqualTo(AcGeVector2d const &, AcGeTol const &=AcGeContext::gTol) const
double operator[](unsigned int) const
AcGeVector2d & transformBy(AcGeMatrix2d const &)
Frx::Boolean isZeroLength(AcGeTol const &=AcGeContext::gTol) const
double length(void) const
AcGeVector2d & operator*=(double)
AcGeVector2d & setToSum(AcGeVector2d const &, AcGeVector2d const &)
AcGeVector2d(void)
AcGeVector2d operator-(AcGeVector2d const &) const
Frx::Boolean isUnitLength(AcGeTol const &=AcGeContext::gTol) const
double angleTo(AcGeVector2d const &) const
AcGeVector2d & setToProduct(AcGeVector2d const &, double)
AcGeVector2d(AcGeVector2d const &)
AcGeVector2d & set(double, double)
double & operator[](unsigned int)
static ARX_API_STATIC AcGeVector2d const kIdentity
AcGeVector2d(double, double)
AcGeVector2d & operator=(AcGeVector2d const &)
AcGeVector2d & normalize(AcGeTol const &=AcGeContext::gTol)
AcGeVector2d & normalize(AcGeTol const &, AcGe::ErrorCondition &)
AcGeVector2d & operator-=(AcGeVector2d const &)
Frx::Boolean isPerpendicularTo(AcGeVector2d const &, AcGeTol const &=AcGeContext::gTol) const
static ARX_API_STATIC AcGeVector2d const kYAxis
Frx::Boolean isParallelTo(AcGeVector2d const &, AcGeTol const &=AcGeContext::gTol) const
double angle(void) const
AcGeVector2d operator+(AcGeVector2d const &) const
AcGeVector2d & negate(void)
bool operator==(AcGeVector2d const &) const
AcGeVector2d operator-(void) const
bool operator!=(AcGeVector2d const &) const
AcGeVector2d & mirror(AcGeVector2d const &)
AcGeVector2d & setToProduct(AcGeMatrix2d const &, AcGeVector2d const &)
static ARX_API_STATIC AcGeTol gTol
Definition AcGeContext.h:24
ErrorCondition
Definition AcGe.h:168