|
|
|
This is a three-component point in space (as opposed to a three-component vector, which represents a direction and a distance).
More...
#include "lpoint3.h"
List of all members.
Public Member Functions |
|
| LPoint3f (const LVecBase3f ©) |
|
| LPoint3f (float fill_value) |
|
| LPoint3f (float x, float y, float z) |
|
LPoint3f | cross (const LVecBase3f &other) const |
| LPoint2f | get_xy () const |
| | Returns a 2-component vector that shares just the first two components of this vector.
|
| LPoint2f | get_xz () const |
| | Returns a 2-component vector that shares just the first and last components of this vector.
|
| LPoint2f | get_yz () const |
| | Returns a 2-component vector that shares just the last two components of this vector.
|
|
LPoint3f | operator* (float scalar) const |
|
LVecBase3f | operator+ (const LVecBase3f &other) const |
|
LPoint3f | operator+ (const LVector3f &other) const |
|
LVecBase3f | operator- (const LVecBase3f &other) const |
|
LPoint3f | operator- () const |
|
LVector3f | operator- (const LPoint3f &other) const |
|
LPoint3f | operator- (const LVector3f &other) const |
|
LPoint3f | operator/ (float scalar) const |
|
LPoint3f & | operator= (float fill_value) |
|
LPoint3f & | operator= (const LVecBase3f ©) |
| LPoint3f | project (const LVecBase3f &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 LPoint3f | origin (CoordinateSystem cs=CS_default) |
| | Returns the origin of the indicated coordinate system.
|
| static LPoint3f | rfu (float right, float fwd, float up, CoordinateSystem cs=CS_default) |
| | Returns a point described by right, forward, up displacements from the origin, wherever that maps to in the given coordinate system.
|
| static const LPoint3f & | unit_x () |
| | Returns a unit X point.
|
| static const LPoint3f & | unit_y () |
| | Returns a unit Y point.
|
| static const LPoint3f & | unit_z () |
| | Returns a unit Z point.
|
| static const LPoint3f & | zero () |
| | Returns a zero-length point.
|
Detailed Description
This is a three-component point in space (as opposed to a three-component vector, which represents a direction and a distance).
Some of the methods are slightly different between LPoint3 and LVector3; in particular, subtraction of two points yields a vector, while addition of a vector and a point yields a point.
Definition at line 93 of file lpoint3.h.
Member Function Documentation
| LPoint2f LPoint3f::get_xy |
( |
| ) |
const [inline] |
Returns a 2-component vector that shares just the first two components of this vector.
Reimplemented from LVecBase3f.
Definition at line 277 of file lpoint3.h.
| LPoint2f LPoint3f::get_xz |
( |
| ) |
const [inline] |
Returns a 2-component vector that shares just the first and last components of this vector.
Reimplemented from LVecBase3f.
Definition at line 288 of file lpoint3.h.
| LPoint2f LPoint3f::get_yz |
( |
| ) |
const [inline] |
Returns a 2-component vector that shares just the last two components of this vector.
Reimplemented from LVecBase3f.
Definition at line 299 of file lpoint3.h.
| LPoint3f LPoint3f::origin |
( |
CoordinateSystem |
cs = CS_default | ) |
[inline, static] |
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 LVecBase3f.
Definition at line 381 of file lpoint3.h.
| LPoint3f LPoint3f::rfu |
( |
float |
right, |
|
|
float |
fwd, |
|
|
float |
up, |
|
|
CoordinateSystem |
cs = CS_default |
|
) |
| [inline, static] |
| const LPoint3f & LPoint3f::unit_x |
( |
| ) |
[inline, static] |
| const LPoint3f & LPoint3f::unit_y |
( |
| ) |
[inline, static] |
| const LPoint3f & LPoint3f::unit_z |
( |
| ) |
[inline, static] |
| const LPoint3f & LPoint3f::zero |
( |
| ) |
[inline, static] |
Returns a zero-length point.
Reimplemented from LVecBase3f.
Definition at line 236 of file lpoint3.h.
Referenced by BulletTriangleMeshShape::BulletTriangleMeshShape(), PfmFile::calc_average_point(), PfmFile::calc_min_max(), PfmFile::clear(), Character::clear_lod_animation(), CollisionEntry::get_all(), CollisionEntry::get_all_contact_info(), PhysxActor::get_c_mass_global_pos(), PhysxActor::get_c_mass_local_pos(), TexGenAttrib::get_constant_value(), OdeCollisionEntry::get_contact_point(), CollisionEntry::get_contact_pos(), PhysxJoint::get_global_anchor(), PhysxActor::get_global_pos(), PhysxShape::get_local_pos(), LwoPoints::get_point(), ScissorEffect::get_point(), BoundingHexahedron::get_point(), BoundingBox::get_point(), PfmFile::get_point(), CollisionPolygon::get_point(), CollisionBox::get_point(), CollisionBox::get_point_aabb(), PhysxForceFieldShape::get_pos(), PhysxController::get_pos(), NurbsCurveResult::get_sample_point(), CollisionEntry::get_surface_point(), PortalNode::get_vertex(), OccluderNode::get_vertex(), LineSegs::get_vertex(), PhysxCloth::get_vertex_attachment_pos(), PfmFile::has_point(), CLwoLayer::make_egg(), PfmFile::merge(), PfmFile::modify_point(), PfmFile::project(), PfmFile::read(), and PfmFile::xform().
The documentation for this class was generated from the following files:
| | |