Panda3D
Public Member Functions | Static Public Member Functions

LVector2f Class Reference

This is a two-component vector offset. More...

#include "lvector2.h"

Inheritance diagram for LVector2f:
LVecBase2f

List of all members.

Public Member Functions

 LVector2f (const LVecBase2f &copy)
 LVector2f (float fill_value)
 LVector2f (float x, float y)
LVector2f operator* (float scalar) const
LVecBase2f operator+ (const LVecBase2f &other) const
LVector2f operator+ (const LVector2f &other) const
LVector2f operator- (const LVector2f &other) const
LVecBase2f operator- (const LVecBase2f &other) const
LVector2f operator- () const
LVector2f operator/ (float scalar) const
LVector2foperator= (const LVecBase2f &copy)
LVector2foperator= (float fill_value)
LVector2f project (const LVecBase2f &onto) const
 Returns a new vector representing the projection of this vector onto another one.
float signed_angle_deg (const LVector2f &other) const
 returns the signed angled between two vectors.
float signed_angle_rad (const LVector2f &other) const
 returns the signed angled between two vectors.

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()
static const LVector2funit_x ()
 Returns a unit X vector.
static const LVector2funit_y ()
 Returns a unit Y vector.
static const LVector2fzero ()
 Returns a zero-length vector.

Detailed Description

This is a two-component vector offset.

Definition at line 85 of file lvector2.h.


Member Function Documentation

LVector2f LVector2f::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 313 of file lvector2.h.

float LVector2f::signed_angle_deg ( const LVector2f other) const [inline]

returns the signed angled between two vectors.

normalization is NOT necessary

Definition at line 335 of file lvector2.h.

float LVector2f::signed_angle_rad ( const LVector2f other) const [inline]

returns the signed angled between two vectors.

normalization is NOT necessary

Definition at line 324 of file lvector2.h.

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

Returns a unit X vector.

Reimplemented from LVecBase2f.

Definition at line 220 of file lvector2.h.

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

Returns a unit Y vector.

Reimplemented from LVecBase2f.

Definition at line 230 of file lvector2.h.

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

Returns a zero-length vector.

Reimplemented from LVecBase2f.

Definition at line 210 of file lvector2.h.


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