Structs:SecPlane

From ZDoom Wiki
Revision as of 09:40, 12 November 2022 by Inkoalawetrust (talk | contribs) (Added SecPlane category, as Boondorl has documented at least one of the methods (Or rather, all of them), to warrant making the category for, well, categorization.)
Jump to navigation Jump to search
Note: This feature is for ZScript only.

SecPlanes store information about the floor and ceiling planes that make up a sector. Each sector comes with two pointers, ceilingplane and floorplane. 3D floors instead use bottom and top to store their plane data respectively. When getting information about z heights at positions or slope data, SecPlanes must be used.

Warning: SecPlanes are not serializable, meaning references to them cannot be saved in a save file. Do not store them as a member variable in a class or struct.

Fields

  • Vector3 Normal - A unit vector that is perpendicular to the plane.
  • double D - Contains the plane's distance from the world origin. See the general form of a plane for more information.
  • double negiC - The same as -1 / Normal.z. Pre-computed to speed up certain tasks such as calculating the z height at an xy point on a plane.

Methods

Non-static