// File: carlos-urena[P]svg-gen/svgobjects.cpp
// Function: Ellipse::Ellipse(unsigned int, VectorTempl3<float> const&, VectorTempl3<float> const&, VectorTempl3<float>)
Ellipse::Ellipse( unsigned n, const vec3 & center, const vec3 & eje1, const vec3 eje2 )
{
  for( unsigned i= 0 ; i < n ; i++ )
  {
    const real ang = real(i)*real(2.0)*real(M_PI)/real(n) ,
               c   = cos(double(ang)),
               s   = sin(double(ang));

    points3D.push_back( center + c*eje1 + s*eje2 ) ;
  }
  style.draw_filled = false ;
  style.draw_lines  = true ;
  style.close_lines = true ;
  style.lines_width = 0.006 ;
  style.lines_color = vec3( 0.0, 1.0, 0.0 );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
movlpd %xmm0, -0x1c(%rbp)
movss %xmm1, -0x14(%rbp)
movq -0x1c(%rbp), %rax
movq %rax, -0xc(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
movq %rdi, -0x28(%rbp)
movl %esi, -0x2c(%rbp)
movq %rdx, -0x38(%rbp)
movq %rcx, -0x40(%rbp)
movq -0x28(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0xb040
movq -0x108(%rbp), %rax
leaq 0x10b18(%rip), %rcx     # 0x1d898
addq $0x10, %rcx
movq %rcx, (%rax)
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jae 0xcfb7
movl -0x44(%rbp), %eax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
movss 0xa476(%rip), %xmm1     # 0x17224
mulss %xmm1, %xmm0
movl -0x2c(%rbp), %eax
cvtsi2ss %rax, %xmm1
divss %xmm1, %xmm0
movss %xmm0, -0x48(%rbp)
movss -0x48(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x32b0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x4c(%rbp)
movss -0x48(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x3060
movq -0x108(%rbp), %rax
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x50(%rbp)
addq $0x68, %rax
movq %rax, -0x138(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x130(%rbp)
movss -0x4c(%rbp), %xmm0
movq -0x40(%rbp), %rdi
callq 0x8cf0
movss %xmm1, -0x124(%rbp)
movaps %xmm0, -0x120(%rbp)
jmp 0xce2d
movq -0x130(%rbp), %rdi
movss -0x124(%rbp), %xmm0
movaps -0x120(%rbp), %xmm1
movlpd %xmm1, -0xa8(%rbp)
movss %xmm0, -0xa0(%rbp)
movl -0xa0(%rbp), %eax
movl %eax, -0x80(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq -0x88(%rbp), %rsi
callq 0x13b90
movss %xmm1, -0x154(%rbp)
movaps %xmm0, -0x150(%rbp)
jmp 0xce87
movss -0x154(%rbp), %xmm0
movaps -0x150(%rbp), %xmm1
movlpd %xmm1, -0xb8(%rbp)
movss %xmm0, -0xb0(%rbp)
movl -0xb0(%rbp), %eax
movl %eax, -0x70(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x78(%rbp)
movss -0x50(%rbp), %xmm0
leaq -0xc(%rbp), %rdi
callq 0x8cf0
movss %xmm1, -0x174(%rbp)
movaps %xmm0, -0x170(%rbp)
jmp 0xced9
movss -0x174(%rbp), %xmm0
movaps -0x170(%rbp), %xmm1
movlpd %xmm1, -0xd8(%rbp)
movss %xmm0, -0xd0(%rbp)
movl -0xd0(%rbp), %eax
movl %eax, -0xc0(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq -0x78(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x13b90
movss %xmm1, -0x194(%rbp)
movaps %xmm0, -0x190(%rbp)
jmp 0xcf33
movss -0x194(%rbp), %xmm0
movaps -0x190(%rbp), %xmm1
movlpd %xmm1, -0xe8(%rbp)
movss %xmm0, -0xe0(%rbp)
movl -0xe0(%rbp), %eax
movl %eax, -0x60(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq -0x5c(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x8e00
jmp 0xcf75
movq -0x138(%rbp), %rdi
leaq -0x5c(%rbp), %rsi
callq 0x13b60
jmp 0xcf87
jmp 0xcf89
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0xcd8e
movq -0x108(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
callq 0xb2d0
jmp 0xd036
movq -0x108(%rbp), %rax
movb $0x0, 0x3a(%rax)
movb $0x1, 0x38(%rax)
movb $0x1, 0x39(%rax)
movl $0x3bc49ba6, 0x3c(%rax) # imm = 0x3BC49BA6
movl $0x0, -0xf8(%rbp)
movl $0x3f800000, -0xfc(%rbp) # imm = 0x3F800000
movl $0x0, -0x100(%rbp)
leaq -0xf4(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
leaq -0xfc(%rbp), %rdx
leaq -0x100(%rbp), %rcx
callq 0x8c30
jmp 0xd012
movq -0x108(%rbp), %rax
movq -0xf4(%rbp), %rcx
movq %rcx, 0x20(%rax)
movl -0xec(%rbp), %ecx
movl %ecx, 0x28(%rax)
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
movq -0x90(%rbp), %rdi
callq 0x3280
nopw %cs:(%rax,%rax)