Panda3D
Public Member Functions | Static Public Member Functions
LPoint2f Class Reference

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

#include "lpoint2.h"

Inheritance diagram for LPoint2f:
LVecBase2f

List of all members.

Public Member Functions

 LPoint2f (const LVecBase2f &copy)
 LPoint2f (float fill_value)
 LPoint2f (float x, float y)
LPoint2f operator* (float scalar) const
LVecBase2f operator+ (const LVecBase2f &other) const
LPoint2f operator+ (const LVector2f &other) const
LPoint2f operator- () const
LVecBase2f operator- (const LVecBase2f &other) const
LVector2f operator- (const LPoint2f &other) const
LPoint2f operator- (const LVector2f &other) const
LPoint2f operator/ (float scalar) const
LPoint2foperator= (const LVecBase2f &copy)
LPoint2foperator= (float fill_value)
LPoint2f project (const LVecBase2f &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 LPoint2funit_x ()
 Returns a unit X point.
static const LPoint2funit_y ()
 Returns a unit Y point.
static const LPoint2fzero ()
 Returns a zero-length point.

Detailed Description

This is a two-component point in space.

Definition at line 86 of file lpoint2.h.


Member Function Documentation

LPoint2f LPoint2f::project ( const LVecBase2f 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 LVecBase2f.

Definition at line 327 of file lpoint2.h.

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

Returns a unit X point.

Reimplemented from LVecBase2f.

Definition at line 225 of file lpoint2.h.

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

Returns a unit Y point.

Reimplemented from LVecBase2f.

Definition at line 235 of file lpoint2.h.

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

Returns a zero-length point.

Reimplemented from LVecBase2f.

Definition at line 215 of file lpoint2.h.


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