Altus Mapping Engine JavaScript API Reference - v2.0.ut.2153.g60764257e - Tuesday May 16, 2022 SDK Documentation | Builds | BA3 Home
AltusUnified::vec2d Class Reference

Public Member Functions

 vec2d (double, double)
 
void set (vec2d)
 
vec2d mul (vec2d other)
 
vec2d sub (vec2d other)
 
vec2d add (vec2d other)
 
vec2d div (vec2d other)
 
void mul_inplace (vec2d c)
 
void sub_inplace (vec2d c)
 
void add_inplace (vec2d c)
 
void div_inplace (vec2d c)
 
vec2d negate ()
 
bool eq (vec2d other)
 
bool neq (vec2d other)
 
vec2d mul_const (double other)
 
vec2d sub_const (double other)
 
vec2d add_const (double other)
 
vec2d div_const (double other)
 
void mul_const_inplace (double other)
 
void sub_const_inplace (double other)
 
void add_const_inplace (double other)
 
void div_const_inplace (double other)
 
double dot (vec2d other)
 
double normalize ()
 
double length ()
 
double length_squared ()
 
double distance (vec2d other)
 
double distance_squared (vec2d other)
 
string toString ()
 

Public Attributes

double x
 
double y
 

Constructor & Destructor Documentation

AltusUnified::vec2d::vec2d ( double  ,
double   
)

Member Function Documentation

vec2d AltusUnified::vec2d::add ( vec2d  other)
vec2d AltusUnified::vec2d::add_const ( double  other)
void AltusUnified::vec2d::add_const_inplace ( double  other)
void AltusUnified::vec2d::add_inplace ( vec2d  c)
double AltusUnified::vec2d::distance ( vec2d  other)
double AltusUnified::vec2d::distance_squared ( vec2d  other)
vec2d AltusUnified::vec2d::div ( vec2d  other)
vec2d AltusUnified::vec2d::div_const ( double  other)
void AltusUnified::vec2d::div_const_inplace ( double  other)
void AltusUnified::vec2d::div_inplace ( vec2d  c)
double AltusUnified::vec2d::dot ( vec2d  other)
bool AltusUnified::vec2d::eq ( vec2d  other)
double AltusUnified::vec2d::length ( )
double AltusUnified::vec2d::length_squared ( )
vec2d AltusUnified::vec2d::mul ( vec2d  other)
vec2d AltusUnified::vec2d::mul_const ( double  other)
void AltusUnified::vec2d::mul_const_inplace ( double  other)
void AltusUnified::vec2d::mul_inplace ( vec2d  c)
vec2d AltusUnified::vec2d::negate ( )
bool AltusUnified::vec2d::neq ( vec2d  other)
double AltusUnified::vec2d::normalize ( )
void AltusUnified::vec2d::set ( vec2d  )
vec2d AltusUnified::vec2d::sub ( vec2d  other)
vec2d AltusUnified::vec2d::sub_const ( double  other)
void AltusUnified::vec2d::sub_const_inplace ( double  other)
void AltusUnified::vec2d::sub_inplace ( vec2d  c)
string AltusUnified::vec2d::toString ( )

Member Data Documentation

double AltusUnified::vec2d::x
double AltusUnified::vec2d::y