LPoint2d

from panda3d.core import LPoint2d
class LPoint2d

Bases: LVecBase2d

This is a two-component point in space.

Inheritance diagram

Inheritance diagram of LPoint2d

__init__(*args, **kwargs)
getClassType()

C++ Interface: get_class_type()

get_class_type()

C++ Interface: get_class_type()

normalized()

C++ Interface: normalized(LPoint2d 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.

*/

project()

C++ Interface: project(LPoint2d self, const LVecBase2d onto)

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

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

*/

unitX()

C++ Interface: unit_x()

/**
  • Returns a unit X point.

*/

unitY()

C++ Interface: unit_y()

/**
  • Returns a unit Y point.

*/

unit_x()

C++ Interface: unit_x()

/**
  • Returns a unit X point.

*/

unit_y()

C++ Interface: unit_y()

/**
  • Returns a unit Y point.

*/

zero()

C++ Interface: zero()

/**
  • Returns a zero-length point.

*/