Panda3D
Public Member Functions | Static Public Member Functions

LPoint4f Class Reference

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

#include "lpoint4.h"

Inheritance diagram for LPoint4f:
LVecBase4f

List of all members.

Public Member Functions

 LPoint4f (const LVecBase4f &copy)
 LPoint4f (float fill_value)
 LPoint4f (float x, float y, float z, float w)
LPoint4f operator* (float scalar) const
LVecBase4f operator+ (const LVecBase4f &other) const
LPoint4f operator+ (const LVector4f &other) const
LVector4f operator- (const LPoint4f &other) const
LVecBase4f operator- (const LVecBase4f &other) const
LPoint4f operator- () const
LPoint4f operator- (const LVector4f &other) const
LPoint4f operator/ (float scalar) const
LPoint4foperator= (float fill_value)
LPoint4foperator= (const LVecBase4f &copy)
LPoint4f project (const LVecBase4f &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 LPoint4funit_w ()
 Returns a unit W point.
static const LPoint4funit_x ()
 Returns a unit X point.
static const LPoint4funit_y ()
 Returns a unit Y point.
static const LPoint4funit_z ()
 Returns a unit Z point.
static const LPoint4fzero ()
 Returns a zero-length point.

Detailed Description

This is a four-component point in space.

Definition at line 85 of file lpoint4.h.


Member Function Documentation

LPoint4f LPoint4f::project ( const LVecBase4f 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 LVecBase4f.

Definition at line 348 of file lpoint4.h.

const LPoint4f & LPoint4f::unit_w ( ) [inline, static]

Returns a unit W point.

Reimplemented from LVecBase4f.

Definition at line 256 of file lpoint4.h.

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

Returns a unit X point.

Reimplemented from LVecBase4f.

Definition at line 226 of file lpoint4.h.

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

Returns a unit Y point.

Reimplemented from LVecBase4f.

Definition at line 236 of file lpoint4.h.

const LPoint4f & LPoint4f::unit_z ( ) [inline, static]

Returns a unit Z point.

Reimplemented from LVecBase4f.

Definition at line 246 of file lpoint4.h.

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

Returns a zero-length point.

Reimplemented from LVecBase4f.

Definition at line 216 of file lpoint4.h.


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