PointsOfInterest

Description

sealed class Tinman.Engine.Scenes.Util.PointsOfInterest

Helper class for focusing on points of interest in a scene.

Public / Constructors

Points​Of​Interest


public constructor PointsOfInterest → ()

Creates a new instance of PointsOfInterest.

Public / Methods

Add


public method Add → (2)

center in : ITerrainTransform

[not-null]
The center of the point of interest.

radius in : float64

The bounding sphere radius of the point of interest.

returns → PointsOfInterest

this

Adds a point of interest.

Clear


public method Clear → ()

returns → PointsOfInterest

this

Removes all points of interest.

Compute​Angle


public method ComputeAngle → (1)

view in : Ray

The view ray.

returns → float64

The cone opening angle, in degrees.

Computes the opening angle that will turn the given ray into a cone that contains all points of interest.

Compute​Bounds


public method ComputeBounds → ()

returns → Sphere

The enclosing bounding sphere, in terrain-space.

Computes the bounding sphere that encloses all points of interest.

Compute​Offset


public method ComputeOffset → (2)

view in : Ray

The cone ray.

angle in : float64

The cone opening angle, in degrees.

returns → float64

The movement offset along Ray.Direction of view in.

Computes the movement offset that will put the given cone at a position so that it contains all points of interest.

Remove


public method Remove → (1)

center in : ITerrainTransform

[not-null]
The point of interest no more.

returns → PointsOfInterest

this

Removes a point of interest.