This is a three-component point in space (as opposed to a three-component vector, which represents a direction and a distance). More...

Inheritance diagram for LPoint3d:
LVecBase3d

List of all members.

Public Member Functions

 __init__ ()
 __init__ (LVecBase3d const copy)
 __init__ (double fill_value)
 __init__ (double x, double y, double z)
LPoint3d cross (LVecBase3d const other)
PyObject getattr (string attr_name)
LPoint2d getXy ()
 Returns a 2-component vector that shares just the first two components of this vector.
LPoint2d getXz ()
 Returns a 2-component vector that shares just the first and last components of this vector.
LPoint2d getYz ()
 Returns a 2-component vector that shares just the last two components of this vector.
LPoint3d operator* (double scalar)
LVecBase3d operator+ (LVecBase3d const other)
LPoint3d operator+ (LVector3d const other)
LPoint3d operator- ()
LVector3d operator- (LPoint3d const other)
LVecBase3d operator- (LVecBase3d const other)
LPoint3d operator- (LVector3d const other)
LPoint3d operator/ (double scalar)
LPoint3d operator= (LVecBase3d const copy)
LPoint3d operator= (double fill_value)
LPoint3d project (LVecBase3d 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 LPoint3d origin (CoordinateSystem cs)
 Returns the origin of the indicated coordinate system.
static LPoint3d origin ()
 Returns the origin of the indicated coordinate system.
static LPoint3d rfu (double right, double fwd, double up, CoordinateSystem cs)
 Returns a point described by right, forward, up displacements from the origin, wherever that maps to in the given coordinate system.
static LPoint3d rfu (double right, double fwd, double up)
 Returns a point described by right, forward, up displacements from the origin, wherever that maps to in the given coordinate system.
static LPoint3d const unitX ()
 Returns a unit X point.
static LPoint3d const unitY ()
 Returns a unit Y point.
static LPoint3d const unitZ ()
 Returns a unit Z point.
static LPoint3d const zero ()
 Returns a zero-length point.

Detailed Description

This is a three-component point in space (as opposed to a three-component vector, which represents a direction and a distance).

Some of the methods are slightly different between LPoint3 and LVector3; in particular, subtraction of two points yields a vector, while addition of a vector and a point yields a point.


Member Function Documentation

__init__ ( )

Reimplemented from LVecBase3d.

__init__ ( LVecBase3d const  copy)

Reimplemented from LVecBase3d.

__init__ ( double  fill_value)

Reimplemented from LVecBase3d.

__init__ ( double  x,
double  y,
double  z 
)

Reimplemented from LVecBase3d.

LPoint3d cross ( LVecBase3d const  other)

Reimplemented from LVecBase3d.

PyObject getattr ( string  attr_name)

Reimplemented from LVecBase3d.

static TypeHandle getClassType ( ) [static]

Reimplemented from LVecBase3d.

Returns a 2-component vector that shares just the first two components of this vector.

Reimplemented from LVecBase3d.

Returns a 2-component vector that shares just the first and last components of this vector.

Reimplemented from LVecBase3d.

Returns a 2-component vector that shares just the last two components of this vector.

Reimplemented from LVecBase3d.

LPoint3d operator* ( double  scalar)

Reimplemented from LVecBase3d.

LVecBase3d operator+ ( LVecBase3d const  other)

Reimplemented from LVecBase3d.

LPoint3d operator+ ( LVector3d const  other)
LPoint3d operator- ( )

Reimplemented from LVecBase3d.

LVector3d operator- ( LPoint3d const  other)
LVecBase3d operator- ( LVecBase3d const  other)

Reimplemented from LVecBase3d.

LPoint3d operator- ( LVector3d const  other)
LPoint3d operator/ ( double  scalar)

Reimplemented from LVecBase3d.

LPoint3d operator= ( LVecBase3d const  copy)

Reimplemented from LVecBase3d.

LPoint3d operator= ( double  fill_value)

Reimplemented from LVecBase3d.

static LPoint3d origin ( CoordinateSystem  cs) [static]

Returns the origin of the indicated coordinate system.

This is always 0, 0, 0 with all of our existing coordinate systems; it's hard to imagine it ever being different.

static LPoint3d origin ( ) [static]

Returns the origin of the indicated coordinate system.

This is always 0, 0, 0 with all of our existing coordinate systems; it's hard to imagine it ever being different.

LPoint3d project ( LVecBase3d 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 LVecBase3d.

pythonRepr ( ostream  out,
string  class_name 
)

Reimplemented from LVecBase3d.

static LPoint3d rfu ( double  right,
double  fwd,
double  up,
CoordinateSystem  cs 
) [static]

Returns a point described by right, forward, up displacements from the origin, wherever that maps to in the given coordinate system.

static LPoint3d rfu ( double  right,
double  fwd,
double  up 
) [static]

Returns a point described by right, forward, up displacements from the origin, wherever that maps to in the given coordinate system.

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

Reimplemented from LVecBase3d.

static LPoint3d const unitX ( ) [static]

Returns a unit X point.

Reimplemented from LVecBase3d.

static LPoint3d const unitY ( ) [static]

Returns a unit Y point.

Reimplemented from LVecBase3d.

static LPoint3d const unitZ ( ) [static]

Returns a unit Z point.

Reimplemented from LVecBase3d.

static LPoint3d const zero ( ) [static]

Returns a zero-length point.

Reimplemented from LVecBase3d.