FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
Vector3d.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
19#include "Vector2d.h"
20#include "IntVector3d.h"
22
24{
25public:
26 static Vector3d const kNull;
27 static Vector3d const kXDir;
28 static Vector3d const kYDir;
29 static Vector3d const kZDir;
30
31public:
35 Vector3d( double, double, double );
36 Vector3d( void );
37 Vector3d( const Vector3d& );
38// operator AcGeVector3d& ( void );
39// operator AcGeVector3d const& ( void )const;
40 bool isEqual( Vector3d, double )const;
41 bool isEqualRect( Vector3d, double )const;
42 bool isExactNull( void )const;
43 bool isNull( double )const;
44 bool isParallel( Vector3d const&, double )const;
45 bool isParallelNorm( Vector3d const&, double )const;
46 bool isPerpend( Vector3d const&, double )const;
47 Vector2d toVector2d( int )const;
48 Vector2d toVector2d( int, int )const;
49 Vector2d const& toVector2d( void )const;
52 Vector3d normalize( void )const;
54 Vector3d operator*( double )const;
57 Vector3d operator-( void )const;
58 Vector3d operator/( double )const;
59 Vector3d perpend( void )const;
60 double& operator[]( int );
61 double angle( Vector3d const& )const;
62 double dist( Vector3d )const;
63 double distRect( Vector3d )const;
64 double distSqrd( Vector3d )const;
65 double length( void )const;
66 double lengthRect( void )const;
67 double lengthSqrd( void )const;
68 double operator%( Vector3d )const;
69 double operator[]( int )const;
70 int dominantDirection( void )const;
72 static Vector3d random( void );
73// void operator*=( Transf3d const& );
74 void operator*=( double );
77 void operator/=( double );
78 void orthoPlane( int&, int& )const;
79 void orthoPlane( int&, int&, int& )const;
80};
static Vector3d const kXDir
Definition Vector3d.h:27
bool isPerpend(Vector3d const &, double) const
Vector3d normalize(void) const
double angle(Vector3d const &) const
double distRect(Vector3d) const
double length(void) const
Vector3d perpend(void) const
Vector3d & operator=(Vector3d const &)
bool isNull(double) const
Vector3d(double, double, double)
Vector3d(Vector2d)
Vector2d toVector2d(int) const
Vector3d(const Vector3d &)
void operator*=(double)
Vector3d(AcGeVector3d const &)
double operator%(Vector3d) const
static Vector3d random(void)
Vector2d const & toVector2d(void) const
void operator/=(double)
Vector3d operator*(Vector3d) const
Vector3d operator+(Vector3d) const
Vector3d operator-(void) const
double lengthSqrd(void) const
double lengthRect(void) const
Vector3d operator*(double) const
double operator[](int) const
double distSqrd(Vector3d) const
Vector3d operator-(Vector3d) const
void operator-=(Vector3d)
bool isParallel(Vector3d const &, double) const
Vector3d & operator=(Vector3d &&)
bool isEqualRect(Vector3d, double) const
void orthoPlane(int &, int &) const
Vector3d(void)
Vector3d operator/(double) const
static Vector3d const kYDir
Definition Vector3d.h:28
static Vector3d & cast(AcGeVector3d &)
bool isExactNull(void) const
static Vector3d const kZDir
Definition Vector3d.h:29
void operator+=(Vector3d)
static Vector3d const kNull
Definition Vector3d.h:26
bool isEqual(Vector3d, double) const
Vector2d toVector2d(int, int) const
int dominantDirection(void) const
double dist(Vector3d) const
void orthoPlane(int &, int &, int &) const
bool isParallelNorm(Vector3d const &, double) const
double & operator[](int)
Vector3d(IntVector3d)