Panda3D
Public Member Functions | Static Public Member Functions

LVector4f Class Reference

This is a four-component vector distance. More...

#include "lvector4.h"

Inheritance diagram for LVector4f:
LVecBase4f

List of all members.

Public Member Functions

 LVector4f (const LVecBase4f &copy)
 LVector4f (float fill_value)
 LVector4f (float x, float y, float z, float w)
LVector4f operator* (float scalar) const
LVecBase4f operator+ (const LVecBase4f &other) const
LVector4f operator+ (const LVector4f &other) const
LVecBase4f operator- (const LVecBase4f &other) const
LVector4f operator- () const
LVector4f operator- (const LVector4f &other) const
LVector4f operator/ (float scalar) const
LVector4foperator= (float fill_value)
LVector4foperator= (const LVecBase4f &copy)
LVector4f 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 LVector4funit_w ()
 Returns a unit W vector.
static const LVector4funit_x ()
 Returns a unit X vector.
static const LVector4funit_y ()
 Returns a unit Y vector.
static const LVector4funit_z ()
 Returns a unit Z vector.
static const LVector4fzero ()
 Returns a zero-length vector.

Detailed Description

This is a four-component vector distance.

Definition at line 85 of file lvector4.h.


Member Function Documentation

LVector4f LVector4f::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 334 of file lvector4.h.

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

Returns a unit W vector.

Reimplemented from LVecBase4f.

Definition at line 251 of file lvector4.h.

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

Returns a unit X vector.

Reimplemented from LVecBase4f.

Definition at line 221 of file lvector4.h.

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

Returns a unit Y vector.

Reimplemented from LVecBase4f.

Definition at line 231 of file lvector4.h.

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

Returns a unit Z vector.

Reimplemented from LVecBase4f.

Definition at line 241 of file lvector4.h.

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

Returns a zero-length vector.

Reimplemented from LVecBase4f.

Definition at line 211 of file lvector4.h.


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