TZGlobalMathsSphere_to_Screen Méthode
Projection d'une sphere 3d sur l'écran sous forme d'un rectangle 2d (X, Y, Width, Height)
Espace de nom: Tzu3DAssembly: Tzu3D (in Tzu3D.dll) Version: 1.0.9025.34810
public static Vector4 Sphere_to_Screen(
Vector3 Position,
float Radius,
Vector3 Camera_Look,
Vector3 Up,
Vector4 Viewport,
Vector2 ZPlan,
Matrix VIEWPROJ
)
Public Shared Function Sphere_to_Screen (
Position As Vector3,
Radius As Single,
Camera_Look As Vector3,
Up As Vector3,
Viewport As Vector4,
ZPlan As Vector2,
VIEWPROJ As Matrix
) As Vector4
- Position Vector3
- Position de la sphère
- Radius Single
- Rayon de la sphère
- Camera_Look Vector3
- Direction de la camera
- Up Vector3
- Vecteur UP
- Viewport Vector4
- Viewport de l'écran
- ZPlan Vector2
- Plan Proche, Plan éloigné
- VIEWPROJ Matrix
- Matrice VIEW * PROJECTION de la camera
Vector4Retourne un rectangle 2d (X, Y, Width, Height)