Panda3D
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions
Point2D Class Reference

This is a two-component point in space. More...

Inheritance diagram for Point2D:
VBase2D

List of all members.

Public Member Functions

 Point2D ()
 Point2D (VBase2D const copy)
 Point2D (double fill_value)
 Point2D (double x, double y)
PyObject getattr (string attr_name)
Point2D operator* (double scalar)
VBase2D operator+ (VBase2D const other)
Point2D operator+ (Vec2D const other)
Point2D operator- ()
Vec2D operator- (Point2D const other)
VBase2D operator- (VBase2D const other)
Point2D operator- (Vec2D const other)
Point2D operator/ (double scalar)
Point2D operator= (VBase2D const copy)
Point2D operator= (double fill_value)
Point2D project (VBase2D const onto)
 Returns a new vector representing the projection of this vector onto another one.
 pythonRepr (ostream out, string class_name)
int setattr (PyObject self, string attr_name, PyObject assign)

Static Public Member Functions

static TypeHandle getClassType ()
static Point2D const unitX ()
 Returns a unit X point.
static Point2D const unitY ()
 Returns a unit Y point.
static Point2D const zero ()
 Returns a zero-length point.

Detailed Description

This is a two-component point in space.


Constructor & Destructor Documentation

Point2D ( )
Point2D ( VBase2D const  copy)
Point2D ( double  fill_value)
Point2D ( double  x,
double  y 
)

Member Function Documentation

PyObject getattr ( string  attr_name)

Reimplemented from VBase2D.

static TypeHandle getClassType ( ) [static]

Reimplemented from VBase2D.

Point2D operator* ( double  scalar)

Reimplemented from VBase2D.

VBase2D operator+ ( VBase2D const  other)

Reimplemented from VBase2D.

Point2D operator+ ( Vec2D const  other)
Point2D operator- ( )

Reimplemented from VBase2D.

Vec2D operator- ( Point2D const  other)
VBase2D operator- ( VBase2D const  other)

Reimplemented from VBase2D.

Point2D operator- ( Vec2D const  other)
Point2D operator/ ( double  scalar)

Reimplemented from VBase2D.

Point2D operator= ( VBase2D const  copy)

Reimplemented from VBase2D.

Point2D operator= ( double  fill_value)

Reimplemented from VBase2D.

Point2D project ( VBase2D const  onto)

Returns a new vector representing the projection of this vector onto another one.

The resulting vector will be a scalar multiple of onto.

Reimplemented from VBase2D.

pythonRepr ( ostream  out,
string  class_name 
)

Reimplemented from VBase2D.

int setattr ( PyObject  self,
string  attr_name,
PyObject  assign 
)

Reimplemented from VBase2D.

static Point2D const unitX ( ) [static]

Returns a unit X point.

Reimplemented from VBase2D.

static Point2D const unitY ( ) [static]

Returns a unit Y point.

Reimplemented from VBase2D.

static Point2D const zero ( ) [static]

Returns a zero-length point.

Reimplemented from VBase2D.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties