LPoint3d

from panda3d.core import LPoint3d
class LPoint3d

Bases: LVecBase3d

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.

Inheritance diagram

Inheritance diagram of LPoint3d

__init__(*args, **kwargs)
cross()

C++ Interface: cross(LPoint3d self, const LVecBase3d other)

/**

*/

getClassType()

C++ Interface: get_class_type()

getXy()

C++ Interface: get_xy(LPoint3d self)

/**
  • Returns a 2-component vector that shares just the first two components of

  • this vector.

*/

getXz()

C++ Interface: get_xz(LPoint3d self)

/**
  • Returns a 2-component vector that shares just the first and last components

  • of this vector.

*/

getYz()

C++ Interface: get_yz(LPoint3d self)

/**
  • Returns a 2-component vector that shares just the last two components of

  • this vector.

*/

get_class_type()

C++ Interface: get_class_type()

get_xy()

C++ Interface: get_xy(LPoint3d self)

/**
  • Returns a 2-component vector that shares just the first two components of

  • this vector.

*/

get_xz()

C++ Interface: get_xz(LPoint3d self)

/**
  • Returns a 2-component vector that shares just the first and last components

  • of this vector.

*/

get_yz()

C++ Interface: get_yz(LPoint3d self)

/**
  • Returns a 2-component vector that shares just the last two components of

  • this vector.

*/

normalized()

C++ Interface: normalized(LPoint3d self)

/**
  • Normalizes the vector and returns the normalized vector as a copy. If the

  • vector was a zero-length vector, a zero length vector will be returned.

*/

origin()

C++ Interface: origin(int cs)

/**
  • Returns the origin of the indicated coordinate system. This is always 0,

  • 0, 0 with all of our existing coordinate systems; it’s hard to imagine it

  • ever being different.

*/

project()

C++ Interface: project(LPoint3d self, const LVecBase3d onto)

/**
  • Returns a new vector representing the projection of this vector onto

  • another one. The resulting vector will be a scalar multiple of onto.

*/

rfu()

C++ Interface: rfu(double right, double fwd, double up, int cs)

/**
  • Returns a point described by right, forward, up displacements from the

  • origin, wherever that maps to in the given coordinate system.

*/

unitX()

C++ Interface: unit_x()

/**
  • Returns a unit X point.

*/

unitY()

C++ Interface: unit_y()

/**
  • Returns a unit Y point.

*/

unitZ()

C++ Interface: unit_z()

/**
  • Returns a unit Z point.

*/

unit_x()

C++ Interface: unit_x()

/**
  • Returns a unit X point.

*/

unit_y()

C++ Interface: unit_y()

/**
  • Returns a unit Y point.

*/

unit_z()

C++ Interface: unit_z()

/**
  • Returns a unit Z point.

*/

xy
xz
yz
zero()

C++ Interface: zero()

/**
  • Returns a zero-length point.

*/