Panda3D
Public Member Functions | Static Public Member Functions

LPoint2d Class Reference

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

#include "lpoint2.h"

Inheritance diagram for LPoint2d:
LVecBase2d

List of all members.

Public Member Functions

 LPoint2d (const LVecBase2d &copy)
 LPoint2d (double fill_value)
 LPoint2d (double x, double y)
LPoint2d operator* (double scalar) const
LVecBase2d operator+ (const LVecBase2d &other) const
LPoint2d operator+ (const LVector2d &other) const
LVector2d operator- (const LPoint2d &other) const
LVecBase2d operator- (const LVecBase2d &other) const
LPoint2d operator- () const
LPoint2d operator- (const LVector2d &other) const
LPoint2d operator/ (double scalar) const
LPoint2doperator= (double fill_value)
LPoint2doperator= (const LVecBase2d &copy)
LPoint2d project (const LVecBase2d &onto) const
 Returns a new vector representing the projection of this vector onto another one.

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()
static const LPoint2dunit_x ()
 Returns a unit X point.
static const LPoint2dunit_y ()
 Returns a unit Y point.
static const LPoint2dzero ()
 Returns a zero-length point.

Detailed Description

This is a two-component point in space.

Definition at line 395 of file lpoint2.h.


Member Function Documentation

LPoint2d LPoint2d::project ( const LVecBase2d onto) const [inline]

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 LVecBase2d.

Definition at line 636 of file lpoint2.h.

const LPoint2d & LPoint2d::unit_x ( ) [inline, static]

Returns a unit X point.

Reimplemented from LVecBase2d.

Definition at line 534 of file lpoint2.h.

const LPoint2d & LPoint2d::unit_y ( ) [inline, static]

Returns a unit Y point.

Reimplemented from LVecBase2d.

Definition at line 544 of file lpoint2.h.

const LPoint2d & LPoint2d::zero ( ) [inline, static]

Returns a zero-length point.

Reimplemented from LVecBase2d.

Definition at line 524 of file lpoint2.h.

Referenced by EggVertexUV::get_uv(), EggVertex::get_uv(), Triangulator::get_vertex(), and MayaShaderColorDef::project_uv().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations