Sign in Join
FPDoc Onlineexperiment

assign(Tvector2_double):Tvector3_single operator

In unit matrix

Allow assignment of two-dimensional double precision vector to three-dimensional single precision vector.

Declaration

pascal
operator :=(const v: Tvector2_double): Tvector3_single

Description

This operator allows you to use a two-dimensional vector with double precision values wherever a three-dimensional vector with single precision is expected. Some accuracy is lost because of the conversion and the third dimension is set to 0.0.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.