C# Класс MyGame.Camera

Наследование: IOObserver
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Position Vector3
Target Vector3

Защищенные свойства (Protected)

Свойство Тип Описание
myGame MyGame

Открытые методы

Метод Описание
BoundingVolumeIsInView ( Microsoft.Xna.Framework.BoundingBox box ) : bool

Checks if the bounding box is in the camera frustrum or not

BoundingVolumeIsInView ( BoundingSphere sphere ) : bool

Checks if the bounding sphere is in the camera frustrum or not

Camera ( MyGame game ) : System

Constructor that initiliaze the projection matrix

Приватные методы

Метод Описание
generateFrustum ( ) : void

Generate the camera frustrum from the view projection matrix

Описание методов

BoundingVolumeIsInView() публичный Метод

Checks if the bounding box is in the camera frustrum or not
public BoundingVolumeIsInView ( Microsoft.Xna.Framework.BoundingBox box ) : bool
box Microsoft.Xna.Framework.BoundingBox the Bounding box to check
Результат bool

BoundingVolumeIsInView() публичный Метод

Checks if the bounding sphere is in the camera frustrum or not
public BoundingVolumeIsInView ( BoundingSphere sphere ) : bool
sphere BoundingSphere the Bounding sphere to check
Результат bool

Camera() публичный Метод

Constructor that initiliaze the projection matrix
public Camera ( MyGame game ) : System
game MyGame The instance of MyGame the game component is attached to
Результат System

Описание свойств

Position публичное свойство

public Vector3 Position
Результат Vector3

Target публичное свойство

public Vector3 Target
Результат Vector3

myGame защищенное свойство

protected MyGame myGame
Результат MyGame